all repos — openbox @ a2db09b869a588e56f816a41e3e7f31140183406

openbox fork - make it a bit more like ryudo

ignore the EnterNotify for focusing when changing workspaces in an ACTIVE_WINDOW change, so that the right window gets focused, not the window under the mouse.
Dana Jansens danakj@orodu.net
commit

a2db09b869a588e56f816a41e3e7f31140183406

parent

544da8c704c14f2fd2533711dbf710c34d873e32

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

jump to
M src/blackbox.ccsrc/blackbox.cc

@@ -574,6 +574,8 @@ this function recursively, it uses this as an indication that focus

has moved to a known window. */ e->xfocus.window = None; + + no_focus = False; // focusing is back on } break;

@@ -682,8 +684,10 @@

if (win->isIconic()) win->deiconify(False, False); if (! win->isStuck() && - (win->getWorkspaceNumber() != screen->getCurrentWorkspaceID())) + (win->getWorkspaceNumber() != screen->getCurrentWorkspaceID())) { + no_focus = True; screen->changeWorkspaceID(win->getWorkspaceNumber()); + } if (win->isVisible() && win->setInputFocus()) { win->getScreen()->getWorkspace(win->getWorkspaceNumber())-> raiseWindow(win);