Use Xinerama info from startup notification if available.
svn path=/trunk/KDE/kdebase/workspace/; revision=662123
This commit is contained in:
parent
1dd1daec48
commit
a6bb443640
2 changed files with 3 additions and 1 deletions
|
@ -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();
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue