Use Xinerama info from startup notification if available.

svn path=/trunk/KDE/kdebase/workspace/; revision=662123
icc-effect-5.14.5
Luboš Luňák 2007-05-07 14:27:39 +00:00
parent 1dd1daec48
commit a6bb443640
2 changed files with 3 additions and 1 deletions

View File

@ -885,6 +885,8 @@ void Client::startupIdChanged()
desktop = asn_data.desktop();
if( !isOnAllDesktops())
workspace()->sendClientToDesktop( this, desktop, true );
if( asn_data.xinerama() != -1 )
workspace()->sendClientToScreen( this, asn_data.xinerama());
Time timestamp = asn_id.timestamp();
if( timestamp == 0 && asn_data.timestamp() != -1U )
timestamp = asn_data.timestamp();

View File

@ -205,7 +205,7 @@ bool Client::manage( Window w, bool isMapped )
{
int screen = options->xineramaPlacementScreen;
if( screen == -1 ) // active screen
screen = workspace()->activeScreen();
screen = asn_data.xinerama() == -1 ? workspace()->activeScreen() : asn_data.xinerama();
area = workspace()->clientArea( PlacementArea, workspace()->screenGeometry( screen ).center(), desktop());
}
else