all repos — openbox @ 53b5c60a5e8bbf2942ef174c2db64db6cdac3e26

openbox fork - make it a bit more like ryudo

check if the window is focused before unfocusing it
Dana Jansens danakj@orodu.net
commit

53b5c60a5e8bbf2942ef174c2db64db6cdac3e26

parent

7393a17bf9b427675df3a6688845db5e2df6f155

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M src/screen.ccsrc/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);