From 65b012ebe914da495bc53f9a9ed0a6dc3fb07582 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20L=C3=BCbking?= Date: Wed, 8 Aug 2012 19:52:38 +0200 Subject: [PATCH] hide horizontal wheel events from the deco list BUG: 304799 FIXED-IN: 4.9.1 REVIEW: 105934 --- kcmkwin/kwindecoration/kwindecoration.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/kcmkwin/kwindecoration/kwindecoration.cpp b/kcmkwin/kwindecoration/kwindecoration.cpp index 34d9b48261..1f7a20969b 100644 --- a/kcmkwin/kwindecoration/kwindecoration.cpp +++ b/kcmkwin/kwindecoration/kwindecoration.cpp @@ -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(e)->orientation() == Qt::Horizontal; + } } return KCModule::eventFilter(o, e); }