Changeset View
Changeset View
Standalone View
Standalone View
effects/desktopgrid/desktopgrid.cpp
Show First 20 Lines • Show All 511 Lines • ▼ Show 20 Line(s) | 492 | if (!wasWindowMove) { // Activate on move | |||
---|---|---|---|---|---|
512 | } | 512 | } | ||
513 | } | 513 | } | ||
514 | if (windowMove->isMovable() && !isUsingPresentWindows()) { | 514 | if (windowMove->isMovable() && !isUsingPresentWindows()) { | ||
515 | wasWindowMove = true; | 515 | wasWindowMove = true; | ||
516 | int screen = effects->screenNumber(me->pos()); | 516 | int screen = effects->screenNumber(me->pos()); | ||
517 | effects->moveWindow(windowMove, unscalePos(me->pos(), NULL) + windowMoveDiff, true, 1.0 / scale[screen]); | 517 | effects->moveWindow(windowMove, unscalePos(me->pos(), NULL) + windowMoveDiff, true, 1.0 / scale[screen]); | ||
518 | } | 518 | } | ||
519 | if (wasWindowMove) { | 519 | if (wasWindowMove) { | ||
520 | if (!effects->waylandDisplay() || (me->modifiers() & Qt::ControlModifier)) { | 520 | if (effects->waylandDisplay() && (me->modifiers() & Qt::ControlModifier)) { | ||
521 | wasWindowCopy = true; | 521 | wasWindowCopy = true; | ||
522 | effects->defineCursor(Qt::DragCopyCursor); | 522 | effects->defineCursor(Qt::DragCopyCursor); | ||
523 | } else { | 523 | } else { | ||
524 | wasWindowCopy = false; | 524 | wasWindowCopy = false; | ||
525 | effects->defineCursor(Qt::ClosedHandCursor); | 525 | effects->defineCursor(Qt::ClosedHandCursor); | ||
526 | } | 526 | } | ||
527 | if (d != highlightedDesktop) { | 527 | if (d != highlightedDesktop) { | ||
528 | auto desktops = windowMove->desktops(); | 528 | auto desktops = windowMove->desktops(); | ||
▲ Show 20 Lines • Show All 986 Lines • Show Last 20 Lines |