From 8dc38853ef1c55de644948ddb390a363e59c25bf Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Fri, 23 Aug 2002 07:28:04 +0000 Subject: [PATCH] dont autoraise when the window isn't going to get focused either. sdl-fullscreen bug fixed. --- src/Window.cc | 16 +++++++++------- 1 file 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(); + } } -- 2.39.2