Bug 481331 - Dragging a window on screen 1 to screen 2 actually moves it to a different virtual desktop
Summary: Dragging a window on screen 1 to screen 2 actually moves it to a different vi...
Status: RESOLVED FIXED
Alias: None
Product: kwin
Classification: Plasma
Component: effects-overview (show other bugs)
Version: master
Platform: Other Linux
: NOR major
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords: qt6
Depends on:
Blocks:
 
Reported: 2024-02-14 17:39 UTC by Nate Graham
Modified: 2024-02-26 17:33 UTC (History)
2 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 Nate Graham 2024-02-14 17:39:07 UTC
STEPS TO REPRODUCE
1. Have two screens
2. Have at least two virtual desktops arranged in a horizontal line
3. Be in the first virtual desktop
4. Open Dolphin on screen 1
5. Activate Overview
6. Drag the Dolphin window visible on screen 1's WindowHeap over to WindowHeap of the Overview on Screen 2. Do NOT drag it to another virtual desktop on screen 2.


OBSERVED RESULT
The Dolphin window moves over to screen 2 in Overview, but it fails to shrink properly and fit in among the other windows on the WindowHeap on screen 2. In addition, the window is actually moved to virtual desktop #2. As a result when you close the Overview effect the window has disappeared (because it's actually on another virtual desktop). A novice user may think the window has disappeared and panic.


EXPECTED RESULT
The Dolphin window moves to the other screen, not a different virtual desktop


ADDITIONAL INFORMATION
If I have only one virtual desktop, everything works properly.
Comment 1 fanzhuyifan 2024-02-14 19:23:38 UTC
Can reproduce -- this only happens in overview, not in gridview.
Comment 2 David Edmundson 2024-02-19 15:08:44 UTC
Git commit 6190bfc58fb7283a020e4e982e26e2be8e2e85eb by David Edmundson.
Committed on 19/02/2024 at 15:08.
Pushed by davidedmundson into branch 'desktop_drag'.

overview: Only handled input events in on-screen desktops

kwin does not support true multiscreen drag and drops. Events are sent
to an offscreen location of the screen initiating the drag. Therefore it
is important that off-screen items do not process drop events

M  +3    -0    src/plugins/overview/qml/main.qml

https://invent.kde.org/plasma/kwin/-/commit/6190bfc58fb7283a020e4e982e26e2be8e2e85eb
Comment 3 Vlad Zahorodnii 2024-02-19 15:40:41 UTC
Git commit 3ede995b270bd85610422eea36bfe9139b3b5107 by Vlad Zahorodnii, on behalf of David Edmundson.
Committed on 19/02/2024 at 15:28.
Pushed by vladz into branch 'master'.

overview: Only handled input events in on-screen desktops

kwin does not support true multiscreen drag and drops. Events are sent
to an offscreen location of the screen initiating the drag. Therefore it
is important that off-screen items do not process drop events

M  +5    -0    src/plugins/overview/qml/main.qml

https://invent.kde.org/plasma/kwin/-/commit/3ede995b270bd85610422eea36bfe9139b3b5107
Comment 4 Vlad Zahorodnii 2024-02-19 15:51:11 UTC
Git commit e4443c32b3ed8a027a103005594d7a2ea8927d79 by Vlad Zahorodnii, on behalf of David Edmundson.
Committed on 19/02/2024 at 15:42.
Pushed by vladz into branch 'Plasma/6.0'.

overview: Only handled input events in on-screen desktops

kwin does not support true multiscreen drag and drops. Events are sent
to an offscreen location of the screen initiating the drag. Therefore it
is important that off-screen items do not process drop events


(cherry picked from commit 3ede995b270bd85610422eea36bfe9139b3b5107)

M  +5    -0    src/plugins/overview/qml/main.qml

https://invent.kde.org/plasma/kwin/-/commit/e4443c32b3ed8a027a103005594d7a2ea8927d79
Comment 5 David Edmundson 2024-02-22 14:15:15 UTC
*** Bug 478132 has been marked as a duplicate of this bug. ***