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); }