xrandr support (hopefully this compiles, can't test here)

svn path=/branches/work/kwin_composite/; revision=629143
This commit is contained in:
Dirk Mueller 2007-02-01 15:39:44 +00:00
parent 992f2ee6b9
commit b34d4ac7c4
2 changed files with 7 additions and 6 deletions

View file

@ -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() )

View file

@ -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