Bug 450637 - Wayland: Menus in LibreOffice are shown as decorated separate windows when LibreOffice window was not focussed
Summary: Wayland: Menus in LibreOffice are shown as decorated separate windows when Li...
Status: RESOLVED DOWNSTREAM
Alias: None
Product: kwin
Classification: Plasma
Component: wayland-generic (show other bugs)
Version: 5.24.1
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-02-21 09:52 UTC by Jan Rathmann
Modified: 2022-03-23 19:37 UTC (History)
4 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Rathmann 2022-02-21 09:52:02 UTC
STEPS TO REPRODUCE
1. Start a Plasma Wayland session
1. Open e.g. LibreOffice Writer
2. Open or switch to any other window (-> LibreOffice window loses focus)
3. Inside the unfocussed LO window, click on a menu (File, Edit, etc.)

OBSERVED RESULT
The menu appears in the centre of the screen and has a window decoration.

EXPECTED RESULT
It should appear as a menu, not as a window on its own.

I can reproduce this when running a Kubuntu 22.04 daily-live image in VirtualBox (and log in to a Wayland session manually).

SOFTWARE/OS VERSIONS
Kubuntu 21.10+Backports/22.04
KDE Plasma Version: 5.21.1
KDE Frameworks Version: 5.91.0 
Qt Version: 5.15.2
Comment 1 Nate Graham 2022-02-22 20:25:37 UTC
Can reproduce. Might be a LO problem, not sure.
Comment 2 Cameron Cumberland 2022-03-11 04:45:15 UTC
Confirm behavior on openSUSE Tumbleweed running Wayland.

Behavior of dialog windows is present in all LO applications, and even in settings menus.

I think this may be the DocumentFoundation bug ID for this: 144585 
https://bugs.documentfoundation.org/show_bug.cgi?id=144585
Comment 3 David Edmundson 2022-03-14 23:41:32 UTC
Not a kwin bug.
Comment 4 Jan Rathmann 2022-03-15 07:42:46 UTC
(In reply to David Edmundson from comment #3)
> Not a kwin bug.

Ok, does that implicate it is a bug in LibreOffice?

The thing is, I can't reproduce it with LibreOffice on Gnome Wayland session (just tested with two up-to-date (K)Ubuntu Jammy test installations).
Comment 5 Jan Rathmann 2022-03-15 08:01:46 UTC
Sorry, I first overlooked the linked upstream report.
But this might be a different bug than the one I reported here anyway:
* it references only to behaviour of button popups, not of menus
* LO 7.2 contains a temporary fix for the button popups thing, and I can confirm that this fix works for me on LO 7.2 on Kubuntu 22.10, but only for the exact use case with the button popups! While my bug here with menus opening as separate windows shows up also on LO 7.2 (independently whether this fix is included or not).
Comment 6 David Edmundson 2022-03-15 09:54:55 UTC
>Ok, does that implicate it is a bug in LibreOffice?

Yes, or toolkits used by libreoffice.
I'm sure they can direct it towards the right place if needed.
Comment 7 ActualDisaster2447 2022-03-23 19:37:17 UTC
Can reproduce this as well on openSUSE Tumbleweed with Plasma Wayland.