Bug 485336

Summary: Grid: when dragging an entire desktop the target should follow the cursor
Product: [Plasma] kwin Reporter: postix <postix>
Component: effects-overviewAssignee: KWin default assignee <kwin-bugs-null>
Status: CONFIRMED ---    
Severity: normal CC: fanzhuyifan, nate
Priority: NOR    
Version First Reported In: 6.0.3   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Screen recording on Plasma 6.0.3

Description postix 2024-04-10 17:05:26 UTC
STEPS TO REPRODUCE
1. 2x2 grid
2. Multiple windows on the upper left VD
3. Drag all windows at once to the lower right VD
4. When the center of mass of the windows is above the lower left VD and the cursor is over the lower right VD release the button

OBSERVED RESULT
Windows go the lower left VD.

EXPECTED RESULT
Windows go the lower right VD where's the cursor.

SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20240407
KDE Plasma Version: 6.0.3
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.3
Kernel Version: 6.8.4-rc1-1-default (64-bit)
Graphics Platform: Wayland
Graphics Processor: AMD Radeon RX 580 Series

ADDITIONAL INFORMATION
Scaling: 2.0
Comment 1 postix 2024-04-10 17:06:47 UTC
Created attachment 168349 [details]
Screen recording on Plasma 6.0.3
Comment 2 fanzhuyifan 2024-04-11 15:53:24 UTC
Can reproduce. Now the target seems calculated based on the center of the windows, which can be different from the location of the cursor.

By the way are you using some 3rd party layout script for the window positions in grid view? The current layout algorithm shouldn't produce a layout like that.
Comment 3 postix 2024-04-11 16:53:21 UTC
(In reply to fanzhuyifan from comment #2)
> By the way are you using some 3rd party layout script for the window
> positions in grid view? The current layout algorithm shouldn't produce a
> layout like that.

Nope, it's layout method "Natural". "Smart" is first introduced in 6.1
Comment 4 fanzhuyifan 2024-04-11 17:04:34 UTC
(In reply to postix from comment #3)
> (In reply to fanzhuyifan from comment #2)
> > By the way are you using some 3rd party layout script for the window
> > positions in grid view? The current layout algorithm shouldn't produce a
> > layout like that.
> 
> Nope, it's layout method "Natural". "Smart" is first introduced in 6.1

Oh you are right I forgot.