Fix minor coding style breaches

This commit is contained in:
Johan Malm 2022-11-26 21:35:51 +00:00 committed by Consolatis
parent dca21fd087
commit b203758ce1
3 changed files with 3 additions and 4 deletions

View file

@ -262,7 +262,7 @@ update_pressed_surface(struct seat *seat, struct cursor_context *ctx)
* (1) there is a pointer grab active (e.g. XDG popup grab) and * (1) there is a pointer grab active (e.g. XDG popup grab) and
* (2) both surfaces belong to the same XDG toplevel. * (2) both surfaces belong to the same XDG toplevel.
* *
* GTK/Wayland menus are known to use an XDG popup grab and to * GTK/Wayland menus are known to use an XDG popup grab and to
* rely on the leave/enter events to work properly. Firefox * rely on the leave/enter events to work properly. Firefox
* context menus (in contrast) do not use an XDG popup grab and * context menus (in contrast) do not use an XDG popup grab and
* do not work properly if we send leave/enter events. * do not work properly if we send leave/enter events.

View file

@ -425,7 +425,8 @@ seat_reconfigure(struct server *server)
WLR_INPUT_DEVICE_POINTER) { WLR_INPUT_DEVICE_POINTER) {
configure_libinput(input->wlr_input_device); configure_libinput(input->wlr_input_device);
} else if (input->wlr_input_device->type == WLR_INPUT_DEVICE_KEYBOARD) { } else if (input->wlr_input_device->type == WLR_INPUT_DEVICE_KEYBOARD) {
struct wlr_keyboard *kb = wlr_keyboard_from_input_device(input->wlr_input_device); struct wlr_keyboard *kb =
wlr_keyboard_from_input_device(input->wlr_input_device);
wlr_keyboard_set_repeat_info(kb, rc.repeat_rate, rc.repeat_delay); wlr_keyboard_set_repeat_info(kb, rc.repeat_rate, rc.repeat_delay);
} }
} }

View file

@ -117,8 +117,6 @@ handle_surface_destroy(struct wl_listener *listener, void *data)
wl_list_remove(&view->surface_destroy.link); wl_list_remove(&view->surface_destroy.link);
} }
static void static void
handle_destroy(struct wl_listener *listener, void *data) handle_destroy(struct wl_listener *listener, void *data)
{ {