Bug 478132 - [Desktop grid] Dragging a desktop with multiple monitors has unintended results
Summary: [Desktop grid] Dragging a desktop with multiple monitors has unintended results
Status: CONFIRMED
Alias: None
Product: kwin
Classification: Plasma
Component: effects-overview (show other bugs)
Version: git master
Platform: Other Linux
: NOR minor
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords: qt6, usability
Depends on:
Blocks:
 
Reported: 2023-12-05 22:48 UTC by fanzhuyifan
Modified: 2024-12-01 20:41 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description fanzhuyifan 2023-12-05 22:48:15 UTC
SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***


STEPS TO REPRODUCE
1. Create 1 virtual desktops
2. Set up 2 monitors. Call them A and B
3. Open 1 window on desktop 1 of monitor A
4. Open desktop grid effect
5. drag the empty desktop 1 on monitor B to desktop 2

OBSERVED RESULT
There is no visual feedback on monitor A, but the window is moved to desktop 2.

EXPECTED RESULT
The visual feedback should be consistent with the actual results. In particular, one of the two things should happen:

1. There is no visual feedback on monitor A, and the windows on monitor A are not effected

or

2. There is visual feedback of moving the windows on monitor A, and the windows on monitor A are also moved.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: plasma 6 beta
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 fanzhuyifan 2023-12-05 22:49:11 UTC
(In reply to fanzhuyifan from comment #0)
> 1. Create 1 virtual desktops

Sorry I mean 2 virtual desktops
Comment 2 David Edmundson 2024-02-22 14:15:15 UTC
*** This bug has been marked as a duplicate of bug 481331 ***
Comment 3 fanzhuyifan 2024-02-22 21:58:46 UTC
(In reply to David Edmundson from comment #2)
> 
> *** This bug has been marked as a duplicate of bug 481331 ***

IMO this isn't a duplicate -- this is about dragging desktops (not windows), and I don't think this is fixed in the latest master build.
Comment 4 Blazer Silving 2024-12-01 20:41:48 UTC
At this time there are several open issues with the Desktop Grid regarding multiple monitors, we can consolidate a few:

The Animation feedback described here is being seen in BUG 459226, resolving it may resolve the case on multi-monitor. 
Focusing here on how windows on both monitors are still affected by a desktop move on one monitor. 

STEPS TO REPRODUCE
1. Have two monitors laid out and extended with Kscreen
2. Set up a Desktop Grid with at least 2 VD tiles. This should apply to both monitors. 
3. Open several windows and spread them around the grids. "Pin" some to all VDs with a right-click.
4. Engage Desktop Grid and swap the desktop contents between desktop tiles (grab space between windows). 

OBSERVED RESULT
The windows on the other monitor are affected, following the direction of the requested change on the other screen.
This also resets window pinning.

EXPECTED RESULT
The requested desktop move should only be handled on the current screen. 
Pins should always be retained for VDs on that screen.