Bug 405820

Summary: window placement behaviour is broken on Wayland
Product: [Plasma] kwin Reporter: Damian Ivanov <damianatorrpm>
Component: wayland-genericAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: damianatorrpm, kde, kde_org, nate
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Damian Ivanov 2019-03-24 16:43:26 UTC
The behavior "Under Mouse" for window placement works => as long as the active window is not on a different screen. If the active window is on a different screen it gets placed there instead.
Comment 1 Martin Flöser 2019-03-24 19:05:20 UTC
Please provide output of xprop and xwininfo of a incorrectly placed window.
Comment 2 Damian Ivanov 2019-03-26 07:30:30 UTC
These would be empty on Wayland?
Comment 3 Martin Flöser 2019-03-26 07:35:47 UTC
In future please include a hint that you are using Wayland.
Comment 4 Damian Ivanov 2019-03-26 07:38:58 UTC
Will do.
Comment 5 Damian Ivanov 2019-03-26 07:51:41 UTC
It does seem to affect all additional behaviours. Centered is affected as well.
Comment 6 David Edmundson 2019-03-26 21:20:32 UTC
I know maximised placement is broken with a top panel, I have a failing unit test ready.

We get set the position, then handle a resize and end up going back to 0,0.

I'll finish chasing that up, hopefully it's the same cause.
Comment 7 kolorafa 2019-06-19 19:07:50 UTC
@Damian

I got exactly the same behavior but on xorg, enabling "Active screen follows mouse" on Focus tab did fix it for me.

(overall, <3 plasma)
Comment 8 David Edmundson 2019-06-20 17:45:33 UTC
>I'll finish chasing that up, hopefully it's the same cause.

I fixed this.

Please reopen if this original report is still valid with kwin > 5.16