From: Dana Jansens Date: Fri, 23 Aug 2002 07:28:04 +0000 (+0000) Subject: dont autoraise when the window isn't going to get focused either. sdl-fullscreen... X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=8dc38853ef1c55de644948ddb390a363e59c25bf;p=chaz%2Fopenbox dont autoraise when the window isn't going to get focused either. sdl-fullscreen bug fixed. --- 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(); + } }