[effects/desktopgrid] Don't copy windows on X11

Summary:
Currently, the Desktop Grid effect tries to copy a client when user
moves it. But on X11 such behavior doesn't make sense because
a client can't be on multiple desktops (except on all).

BUG: 404442
FIXED-IN: 5.15.1

Reviewers: #kwin, davidedmundson

Reviewed By: #kwin, davidedmundson

Subscribers: kwin

Tags: #kwin

Differential Revision: https://phabricator.kde.org/D19116
This commit is contained in:
Vlad Zagorodniy 2019-02-18 14:58:30 +02:00
parent 0015ff2ac6
commit 55d3f2933f

View file

@ -517,7 +517,7 @@ void DesktopGridEffect::windowInputMouseEvent(QEvent* e)
effects->moveWindow(windowMove, unscalePos(me->pos(), NULL) + windowMoveDiff, true, 1.0 / scale[screen]);
}
if (wasWindowMove) {
if (!effects->waylandDisplay() || (me->modifiers() & Qt::ControlModifier)) {
if (effects->waylandDisplay() && (me->modifiers() & Qt::ControlModifier)) {
wasWindowCopy = true;
effects->defineCursor(Qt::DragCopyCursor);
} else {