Commit 2f738a21 authored by Thomas Lübking's avatar Thomas Lübking
Browse files

hide horizontal wheel events from the deco list

BUG: 304799
FIXED-IN: 4.9.1
REVIEW: 105934
parent 78ec5108
......@@ -121,6 +121,7 @@ KWinDecorationModule::KWinDecorationModule(QWidget* parent, const QVariantList &
connect(m_ui->decorationList->verticalScrollBar(), SIGNAL(valueChanged(int)), SLOT(updateViewPosition(int)));
m_ui->decorationList->installEventFilter(this);
m_ui->decorationList->viewport()->installEventFilter(this);
KAboutData *about =
new KAboutData(I18N_NOOP("kcmkwindecoration"), 0,
......@@ -404,6 +405,10 @@ bool KWinDecorationModule::eventFilter(QObject *o, QEvent *e)
return true;
}
}
} else if (m_ui->decorationList->viewport()) {
if (e->type() == QEvent::Wheel) {
return static_cast<QWheelEvent*>(e)->orientation() == Qt::Horizontal;
}
}
return KCModule::eventFilter(o, e);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment