diff options
Diffstat (limited to 'src/Window.cc')
| -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(); + } } |
