From b34d4ac7c4116b3bf1e9e7dca857fff2ed087f68 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Thu, 1 Feb 2007 15:39:44 +0000 Subject: [PATCH] xrandr support (hopefully this compiles, can't test here) svn path=/branches/work/kwin_composite/; revision=629143 --- geometry.cpp | 6 ++++++ workspace.cpp | 7 +------ 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/geometry.cpp b/geometry.cpp index 7b00ec1964..9a89676c64 100644 --- a/geometry.cpp +++ b/geometry.cpp @@ -44,6 +44,12 @@ namespace KWinInternal */ void Workspace::desktopResized() { + QRect geom = QApplication::desktop()->geometry(); + NETSize desktop_geometry; + desktop_geometry.width = geom.width(); + desktop_geometry.height = geom.height(); + rootInfo->setDesktopGeometry( -1, desktop_geometry ); + updateClientArea(); checkElectricBorders( true ); if( compositing() ) diff --git a/workspace.cpp b/workspace.cpp index 55ae2303dd..f686c49d0c 100644 --- a/workspace.cpp +++ b/workspace.cpp @@ -403,12 +403,7 @@ void Workspace::init() NETPoint* viewports = new NETPoint[ number_of_desktops ]; rootInfo->setDesktopViewport( number_of_desktops, *viewports ); delete[] viewports; - QRect geom = QApplication::desktop()->geometry(); - NETSize desktop_geometry; - desktop_geometry.width = geom.width(); - desktop_geometry.height = geom.height(); - // TODO update also after gaining XRANDR support - rootInfo->setDesktopGeometry( -1, desktop_geometry ); + desktopResized(); setShowingDesktop( false ); } // end updates blocker block