Add bool checkInputWindowEvent(QWheelEvent *e) to EffectsHandlerImpl
Allows to also pass through some QWheelEvents.
This commit is contained in:
parent
7718b6dce3
commit
6c0ed26c65
2 changed files with 12 additions and 0 deletions
11
effects.cpp
11
effects.cpp
|
@ -1285,6 +1285,17 @@ bool EffectsHandlerImpl::checkInputWindowEvent(QMouseEvent *e)
|
|||
return true;
|
||||
}
|
||||
|
||||
bool EffectsHandlerImpl::checkInputWindowEvent(QWheelEvent *e)
|
||||
{
|
||||
if (m_grabbedMouseEffects.isEmpty()) {
|
||||
return false;
|
||||
}
|
||||
foreach (Effect *effect, m_grabbedMouseEffects) {
|
||||
effect->windowInputMouseEvent(e);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
void EffectsHandlerImpl::connectNotify(const QMetaMethod &signal)
|
||||
{
|
||||
if (signal == QMetaMethod::fromSignal(&EffectsHandler::cursorShapeChanged)) {
|
||||
|
|
|
@ -167,6 +167,7 @@ public:
|
|||
bool checkInputWindowEvent(xcb_button_press_event_t *e);
|
||||
bool checkInputWindowEvent(xcb_motion_notify_event_t *e);
|
||||
bool checkInputWindowEvent(QMouseEvent *e);
|
||||
bool checkInputWindowEvent(QWheelEvent *e);
|
||||
void checkInputWindowStacking();
|
||||
|
||||
void reserveElectricBorder(ElectricBorder border, Effect *effect) override;
|
||||
|
|
Loading…
Reference in a new issue