From 773fec4e23b8f2fb82788f15a0ad5b8021a6ed93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20L=C3=BCbking?= Date: Wed, 10 Nov 2010 03:08:37 +0000 Subject: [PATCH] workaround bug 224600 / active but unrisen windows don't go fullscreen NOTICE that the correct solution would be to move any active FS client on top of the stack in layers.cpp but this might raise other issues. this patch preserves the present behaviour but raises windows before setting the fullscreen. the only "issue" with this is that for setups that do not raise windows when activating them, setting an active but not risen client FS will cause a restack as sideeffect BUG: 224600 svn path=/trunk/KDE/kdebase/workspace/; revision=1194908 --- geometry.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/geometry.cpp b/geometry.cpp index 0904fe2950..4bc888f449 100644 --- a/geometry.cpp +++ b/geometry.cpp @@ -2553,6 +2553,8 @@ void Client::setFullScreen( bool set, bool user ) fullscreen_mode = set ? FullScreenNormal : FullScreenNone; if( was_fs == isFullScreen()) return; + if ( set ) + workspace()->raiseClient( this ); StackingUpdatesBlocker blocker1( workspace()); GeometryUpdatesBlocker blocker2( this ); workspace()->updateClientLayer( this ); // active fullscreens get different layer