Bug 485336 - Grid: when dragging an entire desktop the target should follow the cursor
Summary: Grid: when dragging an entire desktop the target should follow the cursor
Status: CONFIRMED
Alias: None
Product: kwin
Classification: Plasma
Component: effects-overview (show other bugs)
Version: 6.0.3
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-10 17:05 UTC by postix
Modified: 2024-04-11 17:18 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Screen recording on Plasma 6.0.3 (2.63 MB, video/mp4)
2024-04-10 17:06 UTC, postix
Details

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