Bug 389333 - AppMenu hidden in fullscreen
Summary: AppMenu hidden in fullscreen
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kwin
Classification: Plasma
Component: appmenu (other bugs)
Version First Reported In: 5.11.5
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-01-22 23:10 UTC by zeta
Modified: 2023-09-06 10:39 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description zeta 2018-01-22 23:10:27 UTC
- configure Window menu integration in window decorations
- get any program that opens the File menu with alt+F
- go to fullscreen
- activate the file menu
(nothing happens)
- exit fullscree
(now the menu is visible)
Comment 1 Kai Uwe Broulik 2018-01-23 09:01:28 UTC
I can reproduce. Obviously the full screen window is ontop of everything. Martin, any idea how I can get the app menu raised above? I tried Qt::WindowStaysOnTopHint for the menu but didn't help
Comment 2 Martin Flöser 2018-01-23 15:50:43 UTC
(In reply to Kai Uwe Broulik from comment #1)
> I can reproduce. Obviously the full screen window is ontop of everything.
> Martin, any idea how I can get the app menu raised above? I tried
> Qt::WindowStaysOnTopHint for the menu but didn't help

There's only one way: it needs to be a transient for the window it belongs to.
Comment 3 Kai Uwe Broulik 2018-01-23 15:58:31 UTC
Figured that but we explicitly got rid of the WinId stuff in global menu.. but then we also need an even more broadscale solution for Wayland (foreign window thingie).
Comment 4 Martin Flöser 2018-01-23 16:12:55 UTC
(In reply to Kai Uwe Broulik from comment #3)
> Figured that but we explicitly got rid of the WinId stuff in global menu..
> but then we also need an even more broadscale solution for Wayland (foreign
> window thingie).

Now comes the crazy part: on Wayland that's easier. There's the XdgExporter (https://api.kde.org/frameworks/kwayland/html/classKWayland_1_1Client_1_1XdgExporter.html ) and XdgImporter class in KWayland. The application would export the window (e.g. Plasma-integration could do that), pass the exported string through a side channel (e.g. dbus) to Appmenu, which uses the XdgImporter to mark the menu as a transient to the window.

Now in theory we could pass also an X11 window id through this mechanism. E.g. a string "x11/12345" could be used by KWin to map the X11 window 12345 in the same way.
Comment 5 Kai Uwe Broulik 2018-01-23 16:15:47 UTC
That's what I was looking for. Cool.
Comment 6 David Edmundson 2023-09-06 10:39:13 UTC
This bug was reported against an outdated version of KWin. We have made many changes since the. 
If the issue persists in newer versions can you reopen the bug report updating the version number.