https://bugs.kde.org/show_bug.cgi?id=483075

--- Comment #3 from Kunshan Wang <wks1...@gmail.com> ---
Created attachment 167080
  --> https://bugs.kde.org/attachment.cgi?id=167080&action=edit
Preview window in Qt Designer

There is another way to reproduce it.

1.  Open QtDesigner
2.  Create a new form, using "Main window" as the template
3.  Edit the "MainWindow - untitled" and add some menus in its menu bar (such
as "foo" and "bar" as in the screenshot)
4.  Preview (From the menu: "Form" -> "Preview...")

What actually happens is as shown in the screenshot.  The global menu
disappeared, and there is no active task highlighted in the task manager. 
There is an entry in the task manager for Qt Designer itself, but there is no
entry for the preview window (the window with title "MainWindow - [preview] --
Qt Designer").

At this point, if we switch to another app (such as Konsole), and switch back
to Qt Designer, then the preview window will be on top of Qt Designer.  But Qt
Designer will be high-lighted in the task manager, and the Global Menu applet
will show the menu of Qt Designer.  There is no way for Global Menu to show the
menu for the preview window.

This confirms with my hypothesis that the Global Menu applet is showing the
menu of the highlighted task in the task manager applet.  If a window, for some
reasons, does not have an entry in the task manager, its menu will not be shown
even if it is the window with focus.

I think that's the root cause of the problem.  The Global Menu applet should
determine which window to show menu for by detecting the focused window rather
than the active entry in the task manager.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to