Sometimes, when a window has been moved to another virtual desktop, it is below other windows. Steps to reproduce: * have a shortcut to send a window to another virtual desktop * switch to the second virtual desktop, open konsole * switch back to the first virtual desktop, open konsole * move konsole to the second virtual desktop by using a shortcut also, you may have to repeat it several times to reproduce this bug.
Created attachment 110670 [details] bug demonstration Google Chrome should be above Konsole
Created attachment 110672 [details] expected behaviour ... and sometimes stacking order is fine
If you can reproduce bug as stated in the first comment, try to maximize konsole on the second virtual desktop.
(In reply to Vlad Zagorodniy from comment #3) > If you can reproduce bug as stated in the first comment, try to maximize > konsole on the second virtual desktop. can't
The stacking order in KWin is global and not per virtual desktop. Sending a window to another desktop does not affect the stacking order. It still has the same position. If it is behind another window the reason is it was already behind it before sending.
Does that match the user expectation, though, or the developer expectation?
(In reply to Nate Graham from comment #6) > Does that match the user expectation, ...? Definitely not! (In reply to Martin Flöser from comment #5) > The stacking order in KWin is global and not per virtual desktop. I've "always" been wondering why KWin has a global stacking order. Is there a reason why it should be global? (I'm just curious) > Sending a window to another desktop does not affect the stacking order. Is it on purpose?
(In reply to Nate Graham from comment #6) > Does that match the user expectation, though, or the developer expectation? This is due to the fact how X11 works. On X11 there is one global stacking order. Not much one can do about that. Virtual desktops are just a concept which hides certain windows. Changing this would require a fair amount of rework and I doubt this has any priority the next years especially given that there is a high risk of breakage.
Is the situation better on Wayland?
*** This bug has been marked as a duplicate of bug 119323 ***