xrandr support (hopefully this compiles, can't test here)
svn path=/branches/work/kwin_composite/; revision=629143
This commit is contained in:
parent
992f2ee6b9
commit
b34d4ac7c4
2 changed files with 7 additions and 6 deletions
|
@ -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() )
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue