Don't activate screen edge actions when moving a Client

This only results in problems if e.g. Desktop Grid is activated when
trying to quick tile a window.

REVIEW: 108940
This commit is contained in:
Martin Gräßlin 2013-02-13 10:37:10 +01:00
parent f0cdfefd1c
commit 05541740ac

View file

@ -169,6 +169,12 @@ void Edge::handle(const QPoint &cursorPos)
switchDesktop(cursorPos);
return;
}
if (Workspace::self()->getMovingClient()) {
// if we are moving a window we don't want to trigger the actions. This just results in
// problems, e.g. Desktop Grid activated or screen locker activated which just cannot
// work as we hold a grab.
return;
}
if (handleAction() || handleByCallback()) {
pushCursorBack(cursorPos);
return;