Bug 376507 - Moving window between virtual desktops doesn't raise them
Summary: Moving window between virtual desktops doesn't raise them
Status: RESOLVED FIXED
Alias: None
Product: kwin
Classification: Plasma
Component: core (show other bugs)
Version: 5.9.2
Platform: Neon Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-02-15 09:41 UTC by pfannenwender
Modified: 2017-02-16 11:12 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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!