summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuido Cella <guidocella91@gmail.com>2020-09-04 17:38:37 +0200
committerGuido Cella <guidocella91@gmail.com>2020-09-04 17:38:37 +0200
commit8e81c90f31c5df365a7f684834ab6b50ba589468 (patch)
treedd833d99bb44b64681aefe1735ad82ee87a08802
parent2d84c7465784d58f6d5a924a2d393055f2f710eb (diff)
remove mysterious code
Why would a surface that's not keyboard interactive get focused? Let's remove this for now and see if issues arise.
-rw-r--r--dwl.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/dwl.c b/dwl.c
index d711361..165a7c2 100644
--- a/dwl.c
+++ b/dwl.c
@@ -600,13 +600,6 @@ arrangelayers(Monitor *m)
if (topmost)
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)
- && !wlr_layer_surface_v1_from_wlr_surface(seat->keyboard_state.focused_surface)
- ->current.keyboard_interactive
- )
- focusclient(NULL, selclient(), 1);
}
void