Bug 480795

Summary: Changing layer for layer-shell views does not take effect until a stacking order change
Product: [Plasma] kwin Reporter: dkondor <kondor.dani>
Component: wayland-genericAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED DOWNSTREAM    
Severity: minor CC: kondor.dani
Priority: NOR    
Version First Reported In: 5.24.7   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description dkondor 2024-02-03 18:54:24 UTC
SUMMARY
This applies to clients using the `wlr-layer-shell` protocol. The issue is easily demonstrated e.g. with the [gtk-layer-shell example](https://github.com/wmww/gtk-layer-shell).


STEPS TO REPRODUCE
1. Create a layer-shell surface on some layer (e.g. top)
2. Change the layer (i.e. `zwlr_layer_surface_v1::set_layer`) to something else (e.g. bottom)
3. commit

OBSERVED RESULT
No change: the surface stay on the original layer. Clicking on / activating any open view will make the change actually take effect.

EXPECTED RESULT
The surface is moved to its new layer immediately (when commiting)

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Ubuntu 22.04
(available in About System)
KDE Plasma Version: 5.24.7
KDE Frameworks Version: 5.92.0
Qt Version: 5.15.3

ADDITIONAL INFORMATION
Comment 1 Bug Janitor Service 2024-02-03 19:34:12 UTC
Thank you for the bug report!

However Plasma 5.24.7 is no longer eligible for support or maintenance from KDE; supported versions are 5.27, and 5.27 or newer. Please upgrade to a supported version as soon as your distribution makes it available to you. Plasma is a fast-moving project, and bugs in one version are often fixed in the next one.

If you need support for Plasma 5.24.7, please contact your distribution, who bears the responsibility of providing support for older releases that are no longer supported by KDE.

If you can reproduce the issue after upgrading to a supported version, feel free to re-open this bug report.