https://bugs.kde.org/show_bug.cgi?id=452208
Bug ID: 452208 Summary: Moving windows with super+lclick is allowed when a context menu is open on Wayland Product: kwin Version: 5.24.4 Platform: unspecified OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: general Assignee: kwin-bugs-n...@kde.org Reporter: oli-be...@outlook.com Target Milestone: --- SUMMARY When a context menu is open in an application, using super + leftclick to grab and move the window is blocked on X11. In Wayland, this is allowed. This leads to a significant amount of breakage with window focus and painting: - The menu remains open, and does not move relative the application, however, its click targets do move relative to the application (though when moving the cursor over the context menu itself, does have correctly lined up targets). - This results in some strange issues when painting the application as focused/unfocused. If the cursor is moved such to move from one selected menu to open another, the window's application area is painted unfocused, but the titlebar is painted focused. The application is treated as unfocused (I've noticed that when a context menu is opened for an unfocused window in Wayland, the context menu gets window decorations and opens in the center). Sometimes, when refocusing the window, it is not repainted as focused, though buttons are when hovered over. These buttons are also not repainted as unfocused when the window is unfocused. - The broken painting behaviour cannot be replicated on X11 because when a window has a context menu open, super+leftclick to drag the window is not allowed. - This is also broken in KDE's System Settings application, which uses a button to create a menu rather than a menubar. - I have also noticed that opening the menu in System Settings on X11 paints the application area of the window unfocused. This is not replicable in Dolphin, which has a similar burger menu, though its created menu seems to suffer from Korners (the corner rendering seems to differ from other menus). This issue in Dolphin seems to be a distinct bug, present using Wayland and X11 so I will report a separate issue for it. I am not sure exactly how many bugs exist here, or how to categorise them. **I suspect that most/all of the breakage here is caused by super+leftclick to grab being allowed when a menu is opened on Wayland.** This likely breaks some state resulting in focus and painting issues. A lot of this was hard to describe and likely not explained well, so I'd encourage some experimentation to see the broken behaviour. I will submit another post with images showing the broken behaviours. I am not sure where this bug should be filed so I have placed it in kwin/general. Please move if this is not appropriate. SOFTWARE/OS VERSIONS Linux: Arch Linux KDE Plasma Version: 5.24.4 KDE Frameworks Version: 5.92.0 Qt Version: 5.15.3 -- You are receiving this mail because: You are watching all bug changes.