Bug 419442

Summary: [Wayland] Wrong mouse position while dragging borderless windows
Product: [Plasma] kwin Reporter: Mufeed Ali <kdebugs.undead>
Component: platform-wayland-nestedAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: kaabud-kde, kde, mvourlakos
Priority: NOR    
Version First Reported In: git master   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Mufeed Ali 2020-03-31 05:02:08 UTC
SUMMARY
On a Plasma Wayland session with Latte using the Unity layout or a similar layout supporting borderless windows, dragging the window using the top panel will result in the mouse moving to the center of the window instead of the title bar.

STEPS TO REPRODUCE
1. Start Plasma Wayland session.
2. Use Unity layout.
3. Drag maximized window by using top panel.

OBSERVED RESULT
The window is dragged by the titlebar.

EXPECTED RESULT
The window is dragged by the center of the window (like Meta+Drag).

SOFTWARE/OS VERSIONS
Arch Linux
KDE Plasma Version: 5.18.3
KDE Frameworks Version: 5.68
Qt Version: 5.14.1
Comment 1 Michail Vourlakos 2020-03-31 07:20:40 UTC
KWin wayland has no interface to position mouse appropriately
Comment 2 Mufeed Ali 2020-03-31 09:52:23 UTC
(In reply to Michail Vourlakos from comment #1)
> KWin wayland has no interface to position mouse appropriately

So, for now, this will remain impossible. Should I close this?
Comment 3 Michail Vourlakos 2020-03-31 09:54:10 UTC
(In reply to Mufeed Ali from comment #2)
> (In reply to Michail Vourlakos from comment #1)
> > KWin wayland has no interface to position mouse appropriately
> 
> So, for now, this will remain impossible. Should I close this?

you dont have to, we can leave it open as a request for kwin
Comment 4 David Edmundson 2024-02-21 14:03:14 UTC
This appears to work as described now based on triggering a move from the task bar