stefansundin / altdrag

:file_folder: Easily drag windows when pressing the alt key. (Windows)
https://stefansundin.github.io/altdrag/
GNU General Public License v3.0
1.42k stars 94 forks source link

WSL2 Windows only move the display, not the clickable area #166

Open PlasmaHH opened 1 year ago

PlasmaHH commented 1 year ago

Under Windows10 and WSL2 windows are moved only visually, but behave as if the clickable areas are still at the old location. I suspect it has something to do with the WSL2 internal X server not getting the updates or so

jprochazk commented 1 year ago

For me it moves the viewport, but not the titlebar. The clickable area also just seems to stop working completely. image

RamonUnch commented 1 year ago

Relevant quote from Steve Pronovost about WSLg architecture

For example, the preview still uses server-side window movement and resizing, resulting in window move and resize operations which don’t feel as smooth as native, which also results in the inability to snap Linux windows on the edges of the monitors or to custom snap region. These annoy us too 😊. We will continue to improve the experience over time and reduce the gap in behavior or performance between how Linux and Windows applications behave, while ensuring we continue to design these solutions following our core principles.

Related issues for reference: https://github.com/microsoft/wslg/issues/22 https://github.com/microsoft/PowerToys/issues/10942

matefriedl commented 1 year ago

Hopefully this will be fixed on the WSLg side, but until then you can blacklist them for AltDrag. This way you won't accidentally mess up the window by trying to drag it. I added msrdc.exe to the "Process blacklist" which seems to do the trick.