Bug 485713 - "Switch desktop on edge" doesn't work on edges that also have another monitor touching
Summary: "Switch desktop on edge" doesn't work on edges that also have another monitor...
Status: RESOLVED INTENTIONAL
Alias: None
Product: kwin
Classification: Plasma
Component: Hotcorners and edges (show other bugs)
Version: 6.0.4
Platform: Arch Linux Linux
: NOR minor
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-18 06:33 UTC by Miranda
Modified: 2024-09-26 08:42 UTC (History)
2 users (show)

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


Attachments
Example of my display arrangement (46.55 KB, image/jpeg)
2024-04-21 21:39 UTC, Miranda
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Miranda 2024-04-18 06:33:11 UTC
SUMMARY

If you have multiple screens but that aren't aligned for dragging things between monitors and you want to use the "Switch desktop on edge" feature instead... you can't, no matter how much of a solid screen edge you have.


STEPS TO REPRODUCE
1. Align a display in Display Configuration so one is shifted down or up and you have most of a full screen edge boundary the the mouse cannot cross
2.  Turn on "Switch desktop on edge"
3.  Try to drag a window to the next virtual desktop instead of to the offset display

OBSERVED RESULT
It will not let you move to the next virtual desktop.

EXPECTED RESULT
If 90% of a screen edge does not connect to another desktop, it should function for the virtual desktop switching trigger.
I assume this is an oversight similar to how vertical panels won't dodge or hide when on an edge shared with another display.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 6.8.7-zen1-1-zen
(available in About System)
KDE Plasma Version: 6.0.4
KDE Frameworks Version: 6.1.0
Qt Version: 6.7.0

ADDITIONAL INFORMATION
Comment 1 fanzhuyifan 2024-04-21 16:37:15 UTC
IMHO making this work on shared edges might be quite disruptive -- then users wouldn't be able to drag the window to the other display. So I think it not working is desirable behavior.
Comment 2 Miranda 2024-04-21 21:34:31 UTC
(In reply to fanzhuyifan from comment #1)
> IMHO making this work on shared edges might be quite disruptive -- then
> users wouldn't be able to drag the window to the other display. So I think
> it not working is desirable behavior.

That's not actually true.  You would be able to drag through the corner or wherever the screens do meet. KDE doesn't support completely detached displays anyway.   I'm taking about when the mouse cursor hits an edge where it can't cross into the other display because it's not aligned.  I will add an attachment to illustrate why the current behaviour seems like a bug to me...
Comment 3 Miranda 2024-04-21 21:39:38 UTC
Created attachment 168767 [details]
Example of my display arrangement

This is my screen arrangement.  It took me a while to figure out why turning on switch desktop on edges wasn't doing anything on the right side of my main screen.
Comment 4 Vlad Zahorodnii 2024-09-26 08:42:02 UTC
Such a feature would be a bit disruptive, and another more important aspect is that kwin doesn't support screen edges like that and implementing that would increase code complexity for little gain. I think it works as intentional.