altdrag icon indicating copy to clipboard operation
altdrag copied to clipboard

windows 10: window position shifts upon alt-click, BEFORE dragging takes place

Open reikred opened this issue 9 years ago • 12 comments

I have a new win10 laptop and installed altdrag1.1. When I do alt-click to prepare for a drag operation, the window instantly moves (jumps) maybe 2 inches toward upper left screen corner, so that quite a bit of the window is off-screen. This occurs WITHOUT moving the mouse at all. I can drag the window back to were I want it, but what I'm trying to say is that the position shifted by quite a bit BEFORE I started any dragging.

I also updated my win7 desktop to altdrag1.1, and the described behavior does NOT occur there.

(In X11 terminology, I would perhaps describe the behavior as the window being "warped" toward the UL corner of the display, just to say it in a different way.)

reikred avatar Aug 25 '15 02:08 reikred

May be related to https://github.com/stefansundin/altdrag/issues/7#issuecomment-50701359

I tried the suggested workaround. It now works as it should.

QUOTE:

Workaround

Right-click on AltDrag.exe > Properties > Compatibility tab
Check the box for "Disable display scaling on high DPI displays"
Restart Alt-Drag

Now Alt-Drag behaves correctly no matter where in the window I start dragging from, even at native resolution.

reikred avatar Aug 25 '15 03:08 reikred

Hmm, I'm going to re-open this, because after reboot, the errant behavior is back. Might be because of how start-at-boot setup works??

reikred avatar Aug 25 '15 16:08 reikred

This is almost certainly because of the DPI settings. Did the workaround stop working after a reboot?

stefansundin avatar Aug 25 '15 16:08 stefansundin

Yes, I just did another test reboot. The errant behavior is back. If I then exit AltDrag (using tray and right-click menu), then start it again, it works.

So it basically seems that the start-at-boot somehow does not get or adhere to the Compatibility tab "Disable scaling" setting.

reikred avatar Aug 25 '15 17:08 reikred

Maybe you are elevating on startup and that somehow does not follow the compatibility settings?

stefansundin avatar Aug 25 '15 17:08 stefansundin

I do not have the "elevate" config setting enabled, that is all I know. I also checked in taskmgr that AltDrag runs as User, not Admin.

reikred avatar Aug 25 '15 19:08 reikred

I will do more testing on this, but right now I don't have a solution. If anyone else has any input, let us know!

stefansundin avatar Aug 25 '15 21:08 stefansundin

This happens on my setup but only with some windows. I am on Windows 10. It happens regularly with Putty.exe windows, which also have the errant behavior of not being chosen for a move if I click on an area where Putty is on top of another window - the lower window ends up being moved instead. I tried the compatibility scaling fix and it did not help.

daveola avatar Jan 30 '17 19:01 daveola

I'm seeing this as well. Windows 10. Often with steam windows, which are scaled by 2x due to high dpi settings (my own fault really. have a 4k screen and had to get win 10 purely for application scaling). Often the wrong window gets dragged and is teleported to the mouse.

pknowles avatar Mar 21 '17 04:03 pknowles

I don't see the Compatibility tab in the settings. I have win10 and AltDrag 1.1. Did it go away? How else can one apply the suggested workaround?

I just got a 4k monitor and alt-drag doesn't work! I'm desperate for a fix (LOVE alt-drag!).

Workaround

Right-click on AltDrag.exe > Properties > Compatibility tab Check the box for "Disable display scaling on high DPI displays" Restart Alt-Drag

chrisdtaylor avatar Nov 23 '17 01:11 chrisdtaylor

The settings I had to change were slightly different for me (Windows 10 Pro version 1803): Right-click on AltDrag.exe > Properties > Compatibility tab > Change high DPI settings: Check the box for "Override high DPI scaling behavior. Scaling performed by: Application".

gcurchod avatar Jan 24 '19 12:01 gcurchod

The settings I had to change were slightly different for me (Windows 10 Pro version 1803): Right-click on AltDrag.exe > Properties > Compatibility tab > Change high DPI settings: Check the box for "Override high DPI scaling behavior. Scaling performed by: Application".

it works to me. thanks !

diradev01 avatar Sep 10 '19 10:09 diradev01