From 13c7e039bbd823df6ed8475c1ee1cc90a43d729a Mon Sep 17 00:00:00 2001 From: Guido Cella Date: Sun, 20 Dec 2020 15:55:52 +0100 Subject: deactivate the focused client on overlay focus --- dwl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dwl.c b/dwl.c index 888001c..4fdcc3a 100644 --- a/dwl.c +++ b/dwl.c @@ -621,6 +621,8 @@ arrangelayers(Monitor *m) &m->layers[layers_above_shell[i]], link) { if (layersurface->layer_surface->current.keyboard_interactive && layersurface->layer_surface->mapped) { + // Deactivate the focused client. + focusclient(NULL, false); wlr_seat_keyboard_notify_enter(seat, layersurface->layer_surface->surface, kb->keycodes, kb->num_keycodes, &kb->modifiers); return; -- cgit v1.2.3