mirror of
https://codeberg.org/dwl/dwl.git
synced 2024-12-27 03:36:31 +00:00
send pressed keys to topmost layer surface
This commit is contained in:
parent
d74d404026
commit
b4d9a8662f
1 changed files with 3 additions and 2 deletions
5
dwl.c
5
dwl.c
|
@ -553,6 +553,7 @@ arrangelayers(Monitor *m)
|
||||||
};
|
};
|
||||||
size_t nlayers = LENGTH(layers_above_shell);
|
size_t nlayers = LENGTH(layers_above_shell);
|
||||||
LayerSurface *layersurface, *topmost = NULL;
|
LayerSurface *layersurface, *topmost = NULL;
|
||||||
|
struct wlr_keyboard *kb = wlr_seat_get_keyboard(seat);
|
||||||
|
|
||||||
// Arrange exclusive surfaces from top->bottom
|
// Arrange exclusive surfaces from top->bottom
|
||||||
arrangelayer(m, &m->layers[ZWLR_LAYER_SHELL_V1_LAYER_OVERLAY],
|
arrangelayer(m, &m->layers[ZWLR_LAYER_SHELL_V1_LAYER_OVERLAY],
|
||||||
|
@ -595,8 +596,8 @@ arrangelayers(Monitor *m)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (topmost)
|
if (topmost)
|
||||||
wlr_seat_keyboard_notify_enter(seat,
|
wlr_seat_keyboard_notify_enter(seat, topmost->layer_surface->surface,
|
||||||
topmost->layer_surface->surface, NULL, 0, NULL);
|
kb->keycodes, kb->num_keycodes, &kb->modifiers);
|
||||||
else if (
|
else if (
|
||||||
seat->keyboard_state.focused_surface
|
seat->keyboard_state.focused_surface
|
||||||
&& wlr_surface_is_layer_surface(seat->keyboard_state.focused_surface)
|
&& wlr_surface_is_layer_surface(seat->keyboard_state.focused_surface)
|
||||||
|
|
Loading…
Reference in a new issue