aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuido Cella <guidocella91@gmail.com>2020-09-03 18:34:41 +0200
committerGuido Cella <guidocella91@gmail.com>2020-09-03 18:34:41 +0200
commitb4d9a8662fc1e9524781af8fbcbd007705b63e8e (patch)
treed36701c3589624e5c7b60fca39c021bb61a6e058
parentd74d40402624e17f408b07917916343611b8d778 (diff)
send pressed keys to topmost layer surface
-rw-r--r--dwl.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/dwl.c b/dwl.c
index f9aec9c..08138a4 100644
--- a/dwl.c
+++ b/dwl.c
@@ -553,6 +553,7 @@ arrangelayers(Monitor *m)
};
size_t nlayers = LENGTH(layers_above_shell);
LayerSurface *layersurface, *topmost = NULL;
+ struct wlr_keyboard *kb = wlr_seat_get_keyboard(seat);
// Arrange exclusive surfaces from top->bottom
arrangelayer(m, &m->layers[ZWLR_LAYER_SHELL_V1_LAYER_OVERLAY],
@@ -595,8 +596,8 @@ arrangelayers(Monitor *m)
}
if (topmost)
- wlr_seat_keyboard_notify_enter(seat,
- topmost->layer_surface->surface, NULL, 0, NULL);
+ wlr_seat_keyboard_notify_enter(seat, topmost->layer_surface->surface,
+ kb->keycodes, kb->num_keycodes, &kb->modifiers);
else if (
seat->keyboard_state.focused_surface
&& wlr_surface_is_layer_surface(seat->keyboard_state.focused_surface)