prevent moving of FS windows on 1-screen setup

CCBUG: 332565

Forward port of 124b6783de6f8f4cfb05289fa3398a7be164691b from kde-workspace
This commit is contained in:
Thomas Lübking 2014-03-26 17:20:16 +01:00 committed by Martin Gräßlin
parent d8c9da0cc7
commit 90fb9a5aa9

View file

@ -2548,6 +2548,8 @@ bool Client::startMoveResize()
stopDelayedMoveResize();
if (QApplication::activePopupWidget() != NULL)
return false; // popups have grab
if (isFullScreen() && (screens()->count() < 2 || !isMovableAcrossScreens()))
return false;
bool has_grab = false;
// This reportedly improves smoothness of the moveresize operation,
// something with Enter/LeaveNotify events, looks like XFree performance problem or something *shrug*