| Summary: | [Wayland] Context menu opens behind plasma panel | ||
|---|---|---|---|
| Product: | [Plasma] kwin | Reporter: | Patrick Silva <bugseforuns> |
| Component: | wayland-generic | Assignee: | KWin default assignee <kwin-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | notuxius, safa1996alfulaij, subdiff |
| Priority: | NOR | Flags: | mgraesslin:
Wayland+
mgraesslin: X11- mgraesslin: ReviewRequest+ |
| Version First Reported In: | 5.14.4 | ||
| Target Milestone: | --- | ||
| Platform: | Arch Linux | ||
| OS: | Linux | ||
| URL: | https://phabricator.kde.org/D17826 | ||
| Latest Commit: | https://commits.kde.org/kwin/792d8404551d18827b08cf7af709dbb3cfbd4d53 | Version Fixed/Implemented In: | 5.15 |
| Sentry Crash Report: | |||
|
Description
Patrick Silva
2018-01-19 19:29:35 UTC
On X11 a context menu was always above all other windows which also created a fair amount of problems. Here we try to just stack it above, but well that seems to break. I faced this exact thing here. As a note, if the small hidden popup panel is shown, context menus are above the panel. Also, if the popup panel isn't shown, clicking somewhere else in Plasma (desktop, kicker/kickoff, etc will not hide it. Only opening new windows will hide it. And also if there are any opened window, only the context menus of the shown applets in the system tray (not any other, not the clock, task manager, kicker/kickoff) will appear on the top-left corner. This is only if the small hidden popup panel is not shown. To note also, one can have the small panel opened, and open all the context menus starting from left, and new ones won't hide older. Not sure if this exists in X11. I have Plasma 5.11 on Arch Linux Shall I open different issues for this? :) With >5.13 only reproducible when Dolphin is started in Wayland native mode with: QT_QPA_PLATFORM=wayland dolphin (because in 5.13 the default changed to Xwayland mode for Qt apps, which don't set it explicitly). So context menus only wrong for Wayland native apps. Tested Dolphin on KDE neon live dev git unstable - bottom right click menu almost always opens behind bottom panel without any QT_QPA_PLATFORM mode modifications Possible fix in https://phabricator.kde.org/D17826 Git commit 792d8404551d18827b08cf7af709dbb3cfbd4d53 by Martin Flöser. Committed on 31/12/2018 at 06:58. Pushed by graesslin into branch 'master'. Honor struts when placing Wayland transients Summary: So far transients were placed anywhere on the screen. This behavior was inspired from X11 where context menus were able to overlap any other window and use the complete screen area. On X11 context menus and similar windows are override redirect and thus above all windows managed by KWin. On Wayland, though, context menus and similar and windows just like any other window and thus follow stacking constraints like the parent window. A context menu is stacked just above it's parent and is (normally) below any panels. This resulted in problems that context menu are stacked behind the panel with unreachable options. This change changes the placement for transients to use the PlacementArea instead of a screen geometry. Thus the transient does not render behind the panel. Only in case of a fullscreen the struts are ignored. FIXED-IN: 5.15 Test Plan: New test case Reviewers: #kwin Subscribers: kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D17826 M +85 -1 autotests/integration/transient_placement.cpp M +2 -1 placement.cpp https://commits.kde.org/kwin/792d8404551d18827b08cf7af709dbb3cfbd4d53 |