[effects] Use standard arrow cursor in Present Windows & Desktop Grid

The pointing finger cursor is used to show that a piece of text is a
clickable link, and it is inappropriate to use it in other contexts.
Regular UI elements that do something when single-clicked continue to
use the standard arrow cursor in other contexts, so let's follow that
convention in the Present Windows and Desktop Grid effects too.

BUG: 421928
FIXED-IN: 5.23
remotes/origin/work/below-above-subsurface
Nate Graham 5 years ago
parent ca3609eb4d
commit c9a719e109
  1. 4
      src/effects/desktopgrid/desktopgrid.cpp
  2. 2
      src/effects/presentwindows/presentwindows.cpp

@ -610,7 +610,7 @@ void DesktopGridEffect::windowInputMouseEvent(QEvent* e)
}
}
if (wasWindowMove || wasDesktopMove) { // reset pointer
effects->defineCursor(Qt::PointingHandCursor);
effects->defineCursor(Qt::ArrowCursor);
} else { // click -> exit
const int desk = posToDesktop(me->pos());
if (desk > effects->numberOfDesktops())
@ -1036,7 +1036,7 @@ void DesktopGridEffect::setup()
return;
if (!keyboardGrab) {
keyboardGrab = effects->grabKeyboard(this);
effects->startMouseInterception(this, Qt::PointingHandCursor);
effects->startMouseInterception(this, Qt::ArrowCursor);
effects->setActiveFullScreenEffect(this);
}
setHighlightedDesktop(effects->currentDesktop());

@ -1650,7 +1650,7 @@ void PresentWindowsEffect::setActive(bool active)
}
// Create temporary input window to catch mouse events
effects->startMouseInterception(this, Qt::PointingHandCursor);
effects->startMouseInterception(this, Qt::ArrowCursor);
m_hasKeyboardGrab = effects->grabKeyboard(this);
effects->setActiveFullScreenEffect(this);

Loading…
Cancel
Save