Add bool checkInputWindowEvent(QWheelEvent *e) to EffectsHandlerImpl

Allows to also pass through some QWheelEvents.
icc-effect-5.14.5
Martin Gräßlin 2016-03-04 14:14:44 +01:00
parent 7718b6dce3
commit 6c0ed26c65
2 changed files with 12 additions and 0 deletions

View File

@ -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)) {

View File

@ -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;