If the cursor goes into the "dead" area of a Xinerama screen where the

two monitors have different resolutions treat it as if the cursor
didn't move at all when attempting to move a window. Prevents KWin from
crashing when in this situation.

svn path=/trunk/KDE/kdebase/workspace/; revision=925355
This commit is contained in:
Lucas Murray 2009-02-13 06:15:59 +00:00
parent 11290257b2
commit beee5a8f85

View file

@ -2711,6 +2711,11 @@ void Client::handleMoveResize( int x, int y, int x_root, int y_root )
// TODO move whole group when moving its leader or when the leader is not mapped?
// If the cursor goes into the "dead" area of a Xinerama screen where the two monitors
// have different resolutions treat it as if the cursor didn't move at all.
if( workspace()->screenNumber( globalPos ) == -1 )
return;
// compute bounds
// NOTE: This is duped in checkUnrestrictedMoveResize().
QRect desktopArea = workspace()->clientArea( WorkArea, globalPos, desktop());