_NET_NUMBER_OF_DESKTOPS is ok now
svn path=/trunk/kdebase/kwin/; revision=196975
This commit is contained in:
parent
68eb8a80fb
commit
73e6f75ab7
2 changed files with 2 additions and 3 deletions
|
@ -69,7 +69,6 @@ _NET_NUMBER_OF_DESKTOPS root window property + message COMPLETE
|
||||||
| technique for creating virtual desktops, so it doesn't have |
|
| technique for creating virtual desktops, so it doesn't have |
|
||||||
| to set this property. |
|
| to set this property. |
|
||||||
+----------------------------------------------------------------+
|
+----------------------------------------------------------------+
|
||||||
CHECKME : check updating of properties
|
|
||||||
_NET_DESKTOP_GEOMETRY root window property + message COMPLETE
|
_NET_DESKTOP_GEOMETRY root window property + message COMPLETE
|
||||||
+----------------------------------------------------------------+
|
+----------------------------------------------------------------+
|
||||||
| KWin doesn't implement large desktops, so it ignores |
|
| KWin doesn't implement large desktops, so it ignores |
|
||||||
|
|
|
@ -2427,13 +2427,13 @@ void Workspace::setNumberOfDesktops( int n )
|
||||||
setCurrentDesktop( numberOfDesktops());
|
setCurrentDesktop( numberOfDesktops());
|
||||||
|
|
||||||
// if increasing the number, do the resizing now,
|
// if increasing the number, do the resizing now,
|
||||||
// otherwise after the moving of window to still existing desktops
|
// otherwise after the moving of windows to still existing desktops
|
||||||
if( old_number_of_desktops < number_of_desktops ) {
|
if( old_number_of_desktops < number_of_desktops ) {
|
||||||
|
rootInfo->setNumberOfDesktops( number_of_desktops );
|
||||||
NETPoint* viewports = new NETPoint[ number_of_desktops ];
|
NETPoint* viewports = new NETPoint[ number_of_desktops ];
|
||||||
rootInfo->setDesktopViewport( number_of_desktops, *viewports );
|
rootInfo->setDesktopViewport( number_of_desktops, *viewports );
|
||||||
delete[] viewports;
|
delete[] viewports;
|
||||||
updateClientArea( true );
|
updateClientArea( true );
|
||||||
rootInfo->setNumberOfDesktops( number_of_desktops );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// if the number of desktops decreased, move all
|
// if the number of desktops decreased, move all
|
||||||
|
|
Loading…
Reference in a new issue