mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-26 06:35:58 +01:00
Fix style nits
This commit is contained in:
parent
810c7b700c
commit
8f5ec5e2bb
2 changed files with 4 additions and 6 deletions
|
@ -2,9 +2,7 @@
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/wait.h>
|
#include <sys/wait.h>
|
||||||
|
|
||||||
#include <wlr/util/log.h>
|
#include <wlr/util/log.h>
|
||||||
|
|
||||||
#include "rootston/bindings.h"
|
#include "rootston/bindings.h"
|
||||||
|
|
||||||
static bool outputs_enabled = true;
|
static bool outputs_enabled = true;
|
||||||
|
@ -44,7 +42,8 @@ static void double_fork_shell_cmd(const char *shell_cmd) {
|
||||||
wlr_log(WLR_ERROR, "first child failed to fork command");
|
wlr_log(WLR_ERROR, "first child failed to fork command");
|
||||||
}
|
}
|
||||||
|
|
||||||
void execute_binding_command (struct roots_seat *seat, struct roots_input *input, const char *command) {
|
void execute_binding_command(struct roots_seat *seat,
|
||||||
|
struct roots_input *input, const char *command) {
|
||||||
if (strcmp(command, "exit") == 0) {
|
if (strcmp(command, "exit") == 0) {
|
||||||
wl_display_terminate(input->server->wl_display);
|
wl_display_terminate(input->server->wl_display);
|
||||||
} else if (strcmp(command, "close") == 0) {
|
} else if (strcmp(command, "close") == 0) {
|
||||||
|
@ -97,8 +96,7 @@ void execute_binding_command (struct roots_seat *seat, struct roots_input *input
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if (strcmp(command, "break_pointer_constraint") == 0) {
|
} else if (strcmp(command, "break_pointer_constraint") == 0) {
|
||||||
struct wl_list *list =
|
struct wl_list *list = &input->seats;
|
||||||
&input->seats;
|
|
||||||
struct roots_seat *seat;
|
struct roots_seat *seat;
|
||||||
wl_list_for_each(seat, list, link) {
|
wl_list_for_each(seat, list, link) {
|
||||||
roots_cursor_constrain(seat->cursor, NULL, NAN, NAN);
|
roots_cursor_constrain(seat->cursor, NULL, NAN, NAN);
|
||||||
|
|
Loading…
Reference in a new issue