Bug 452624

Summary: [Dual monitor] Quick tiling a maximized window to the left / right can make it float and tile on the other screen
Product: [Plasma] kwin Reporter: postix <postix>
Component: multi-screenAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: nate, postix
Priority: NOR Keywords: wayland-only
Version First Reported In: 5.25.0   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: KWin Wayland Support Information
Screen recording
kWin Support Info

Description postix 2022-04-14 20:50:19 UTC
Created attachment 148163 [details]
KWin Wayland Support Information

STEPS TO REPRODUCE
1. Two screens: screen A (primary) and screen B. 
2. Enable quick tiling to the left / right in the system settings (shortcuts)
3. Open and select window on screen B. 
4. Quick tile it to the left or right

OBSERVED RESULT
The window becomes tiled on screen A

EXPECTED RESULT
The window becomes tiled on its current screen B

SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20220412
KDE Plasma Version: 5.24.4
KDE Frameworks Version: 5.93.0
Qt Version: 5.15.2
Kernel Version: 5.17.1-1-default (64-bit)
Graphics Platform: Wayland
Comment 1 Nate Graham 2022-04-18 16:24:46 UTC
Huh, works for me.
Comment 2 postix 2022-04-18 17:27:27 UTC
(In reply to Nate Graham from comment #1)
> Huh, works for me.

Weird, it seems to happen at random; I could reproduce it again two times today, but now it just works.
Comment 3 postix 2022-04-18 17:28:45 UTC
I will reopen if I find some steps to reproduce it with certainty.
Comment 4 postix 2022-06-21 14:30:48 UTC
Created attachment 150011 [details]
Screen recording

Can still reproduce it on Wayland. Please see the screen recording:

Left    screen "A" : FullHD@100%
Right screen "B" :         4k@200%

1) Maximize Chromium (Wayland native) on "B"
2) Tile to the right --> Chromium tiles to the right on "A" with margins on the top and right border

3) Maximize Kate on "A"
4) Tile to the left --> Kate tiles to the left on "B" without gaps

5) Maximize Kate on "A"
6) Tile to the right --> Kate tiles to the right on "B" without gaps

After 2), 4) or 6) both apps tile correctly. The issue appears only after maximizing the apps first.
Comment 5 postix 2022-06-21 14:33:24 UTC
Created attachment 150012 [details]
kWin Support Info
Comment 6 postix 2023-03-14 17:32:52 UTC
I will open another report for 5.27 later.