From 89d35aa958cd1b8e8fa5bf9adef405a23d6cbd2f Mon Sep 17 00:00:00 2001 From: Cedric Bellegarde Date: Fri, 23 Nov 2012 12:44:53 +0100 Subject: [PATCH] Use a real Qt::Popup menu => TODO: fix workaround --- libkdecorations/kdecoration.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/libkdecorations/kdecoration.cpp b/libkdecorations/kdecoration.cpp index 0cdabe61c0..7b835c9ca7 100644 --- a/libkdecorations/kdecoration.cpp +++ b/libkdecorations/kdecoration.cpp @@ -27,6 +27,7 @@ DEALINGS IN THE SOFTWARE. #include #include +#include #include #include #if defined Q_WS_X11 && ! defined K_WS_QTONLY @@ -225,6 +226,13 @@ void KDecoration::showWindowMenu(QPoint pos) void KDecoration::showApplicationMenu(const QPoint &p) { + //FIXME: Remove this workaround + // Without showing/hiding this fake widget, + // menu showed by kded-appmenu will fail to grab input + //TODO: Find a proper solution + QMenu fake; + fake.show(); + fake.hide(); bridge_->showApplicationMenu(p); }