Bug 376507

Summary: Moving window between virtual desktops doesn't raise them
Product: [Plasma] kwin Reporter: pfannenwender
Component: coreAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: 5.9.2   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed In:

Description pfannenwender 2017-02-15 09:41:36 UTC
When you move a window from one virtual desktop to another it will not be raised.

Steps to Reproduce:
1)Open any application(a)
2)Move it to another desktop(2)
3)Go back to the previous desktop(1)
4)Open another application(b)
5)Go to the desktop(2) of the moved application(a)
6)Move the application(a) back to the original desktop(1)

Actual Results:
The first application(a) will be focused but not raised. The second application(b) will be on top.

Expected Results:
The first application(a) should be on top and focused.

Additional Information:
- This seems to happen with and without compositing.
- Changing the focus stealing prevention settings didn't seem to influence this behaviour
- I used the keyboard commands for "Window One Desktop Left" and "Window One Desktop Left" to move the window between desktops
Comment 1 Martin Flöser 2017-02-15 15:56:41 UTC
The behavior seems correct to me. The stacking order includes all desktops and the opening of application b gets it raised above application a. Thus the stacking order looks correct to me.
Comment 2 pfannenwender 2017-02-16 00:34:43 UTC
(In reply to Martin Gräßlin from comment #1)
> The behavior seems correct to me. The stacking order includes all desktops
> and the opening of application b gets it raised above application a. Thus
> the stacking order looks correct to me.

If you put it like this it seems coherent, but very counterintuitive.
This behaviour results in having to use alt+tab twice to actually have the application visible when you switch it over to another desktop. Is there any hope that this could be changed, or do you feel that the current behaviour is favourable?
Comment 3 Martin Flöser 2017-02-16 06:10:29 UTC
If we change it we get bug reports about it now raising the window.

What you can do is using a KWin script to raise a window when switching desktops.
Comment 4 pfannenwender 2017-02-16 11:12:00 UTC
I will look into that.
Thanks for the feedback!