From 042af295eea598a589baae33b10f5f0201180ca7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fredrik=20H=C3=B6glund?= Date: Wed, 16 Dec 2009 18:03:15 +0000 Subject: [PATCH] Update _NET_SUPPORTED based on AbilityExtendIntoClientArea when switching decorations. svn path=/trunk/KDE/kdebase/workspace/; revision=1063015 --- workspace.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/workspace.cpp b/workspace.cpp index 84c960f589..a3386763d1 100644 --- a/workspace.cpp +++ b/workspace.cpp @@ -324,7 +324,6 @@ void Workspace::init() NET::WM2DesktopLayout | NET::WM2FullPlacement | NET::WM2FullscreenMonitors | - NET::WM2FrameOverlap | 0 , NET::ActionMove | @@ -341,6 +340,9 @@ void Workspace::init() , }; + if ( mgr->factory()->supports( AbilityExtendIntoClientArea ) ) + protocols[ NETRootInfo::PROTOCOLS2 ] |= NET::WM2FrameOverlap; + QX11Info info; rootInfo = new RootInfo( this, display(), supportWindow->winId(), "KWin", protocols, 5, info.screen() ); @@ -1132,6 +1134,7 @@ void Workspace::slotReconfigure() (*it)->applyWindowRules(); discardUsedWindowRules( *it, false ); } + rootInfo->setSupported( NET::WM2FrameOverlap, mgr->factory()->supports( AbilityExtendIntoClientArea ) ); } void Workspace::slotReinitCompositing()