Bug 375759 - Can't raise other windows above fullscreen XWayland windows
Summary: Can't raise other windows above fullscreen XWayland windows
Status: RESOLVED DUPLICATE of bug 439405
Alias: None
Product: kwin
Classification: Plasma
Component: wayland-generic (show other bugs)
Version: git master
Platform: Neon Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
: 372514 (view as bug list)
Depends on:
Blocks:
 
Reported: 2017-01-30 17:52 UTC by Roman Gilg
Modified: 2021-10-05 14:59 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:
mgraesslin: Wayland+
mgraesslin: X11-


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Roman Gilg 2017-01-30 17:52:26 UTC
Using an XWayland app with fullscreen mode, for example VLC, other windows will always be behind. This is different to Wayland based fullscreen apps or in an X session.
Comment 1 Martin Flöser 2017-02-01 16:11:22 UTC
I tried to reproduce today with kwrite/xcb and was able to move other windows on top of it.

Could you please xprop and xwininfo an affected window? I assume it's not a normal window but override redirect.
Comment 2 Martin Flöser 2017-03-19 12:56:19 UTC
*** Bug 372514 has been marked as a duplicate of this bug. ***
Comment 3 Martin Flöser 2017-03-19 12:56:47 UTC
Triggered the problem today with kate --platform xcb
Comment 4 Martin Flöser 2017-07-23 07:50:47 UTC
That one was tricky: the problem is that the stacking order for X11 fullscreen windows does not depend on the active window but on the most recently activated client. The most recently activated client is a concept I thought we do not need for Wayland. On X11 when activating a window a request is sent to the window and it takes focus. So KWin only marks it in the most recently activated client list and removes it from there when it actually gained focus.

Have a patch for the problem, now thinking about a unit test ;-)
Comment 5 Martin Flöser 2017-07-23 09:53:10 UTC
Git commit dcbfa0869b3604d0636e4b470f03ac9bcca6da77 by Martin Flöser.
Committed on 23/07/2017 at 09:50.
Pushed by graesslin into branch 'master'.

[autotest] Add a test case for X11 fullscreen windows when an Wayland window is there

KWin cannot handle the layering correctly when a Wayland window is active
and there is a fullscreen X11 window. This test tries to simulate the
situation, but it does not show it.

Nevertheless it's a good test, so let's add it.

M  +88   -1    autotests/integration/x11_client_test.cpp

https://commits.kde.org/kwin/dcbfa0869b3604d0636e4b470f03ac9bcca6da77
Comment 6 Vlad Zahorodnii 2021-10-05 14:59:15 UTC
*** This bug has been marked as a duplicate of bug 439405 ***