new windows don't steal focus from fullscreen windows
This commit is contained in:
parent
6cd9ad46cc
commit
1cc6cc4b15
2 changed files with 13 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -2478,9 +2478,16 @@ void FluxboxWindow::mapNotifyEvent(XMapEvent &ne) {
|
|||
|
||||
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;
|
||||
|
|
Loading…
Reference in a new issue