all repos — openbox @ a7515b6d85b9cdb97d2365559109af74e68f6ff8

openbox fork - make it a bit more like ryudo

don't focus non-visible windows
Dana Jansens danakj@orodu.net
commit

a7515b6d85b9cdb97d2365559109af74e68f6ff8

parent

961d7eb5b388e284c697b4ab0fc96ce52f90ff0a

2 files changed, 4 insertions(+), 3 deletions(-)

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

@@ -1541,8 +1541,8 @@

bool BlackboxWindow::setInputFocus(void) { if (flags.focused) return True; - assert((flags.stuck || // window must be on the current workspace or sticky - blackbox_attrib.workspace == screen->getCurrentWorkspaceID())); + assert(flags.stuck || // window must be on the current workspace or sticky + blackbox_attrib.workspace == screen->getCurrentWorkspaceID()); /* We only do this check for normal windows and dialogs because other windows
M src/blackbox.ccsrc/blackbox.cc

@@ -328,7 +328,8 @@ win->shade();

focus = True; } - if (focus && (win->isTransient() || win->getScreen()->doFocusNew())) + if (focus && (win->isTransient() || win->getScreen()->doFocusNew()) && + win->isVisible()) win->setInputFocus(); } else { BScreen *screen = searchScreen(e->xmaprequest.parent);