diff options
| author | Dana Jansens <danakj@orodu.net> | 2002-08-23 07:28:04 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2002-08-23 07:28:04 +0000 |
| commit | 8dc38853ef1c55de644948ddb390a363e59c25bf (patch) | |
| tree | 36c2de13c071d2b6d4b852349b6a5a2752473658 | |
| parent | d1b2c03152d7b1c8975bc6b9ff0a30897b5c8e01 (diff) | |
dont autoraise when the window isn't going to get focused either. sdl-fullscreen bug fixed.
| -rw-r--r-- | src/Window.cc | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/src/Window.cc b/src/Window.cc index 1b86b285..ea6b68cb 100644 --- a/src/Window.cc +++ b/src/Window.cc @@ -3688,14 +3688,16 @@ void BlackboxWindow::enterNotifyEvent(const XCrossingEvent* ce) { } } - if ((! leave || inferior) && ! isFocused()) { - bool success = setInputFocus(); - if (success) // if focus succeeded install the colormap - installColormap(True); // XXX: shouldnt we honour no install? - } + if (! leave || inferior) { + if (! isFocused()) { + bool success = setInputFocus(); + if (success) // if focus succeeded install the colormap + installColormap(True); // XXX: shouldnt we honour no install? + } - if (screen->doAutoRaise()) - timer->start(); + if (screen->doAutoRaise()) + timer->start(); + } } |
