all repos — fluxbox @ 1cc6cc4b150c6be59fa7c896287ed2c292997641

custom fork of the fluxbox windowmanager

new windows don't steal focus from fullscreen windows
markt markt
commit

1cc6cc4b150c6be59fa7c896287ed2c292997641

parent

6cd9ad46cc0d9660a4e582ee5e61a97c68782f1d

2 files changed, 13 insertions(+), 2 deletions(-)

jump to
M ChangeLogChangeLog

@@ -1,5 +1,9 @@

(Format: Year/Month/Day) Changes for 1.0rc3: +*06/07/04: + * New windows don't steal focus from fullscreen windows; instead, flash the + titlebar and iconbar button (Mark) + Window.cc *06/07/03: * fix+improve handling of window gravity, was very broken (Simon) - caused (among others) windows with gravity set to get relocated
M src/Window.ccsrc/Window.cc

@@ -2478,9 +2478,16 @@ return;

setState(NormalState, false); - if (client->isTransient() || screen().focusControl().focusNew()) + if (client->isTransient()) setCurrentClient(*client, true); - else + else if (screen().focusControl().focusNew()) { + FluxboxWindow *cur = FocusControl::focusedFbWindow(); + if (cur && cur->isFullscreen()) { + setFocusFlag(false); + Fluxbox::instance()->attentionHandler().addAttention(*client); + } else + setCurrentClient(*client, true); + } else setFocusFlag(false); iconic = false;