check if the window is focused before unfocusing it
Dana Jansens danakj@orodu.net
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
src/screen.cc
→
src/screen.cc
@@ -669,7 +669,7 @@ // unset modal before dropping our focus
client->_modal = false; // unfocus the client (calls the focus callbacks) - client->unfocus(); + if (client->focused()) client->unfocus(); #ifdef DEBUG printf("Unmanaged window 0x%lx frame 0x%lx\n", client->window(), framewin);