Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
reikred opened this issue Aug 25, 2015 · 12 comments · May be fixed by halaaro/altdrag#1
Open

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

reikred opened this issue Aug 25, 2015 · 12 comments · May be fixed by halaaro/altdrag#1

Comments

@reikred
Copy link

reikred commented Aug 25, 2015

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
Copy link
Author

reikred commented Aug 25, 2015

May be related to #7 (comment)

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 reikred closed this as completed Aug 25, 2015
@reikred
Copy link
Author

reikred commented Aug 25, 2015

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 reikred reopened this Aug 25, 2015
@stefansundin
Copy link
Owner

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

@reikred
Copy link
Author

reikred commented Aug 25, 2015

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.

@stefansundin
Copy link
Owner

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

@reikred
Copy link
Author

reikred commented Aug 25, 2015

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.

@stefansundin
Copy link
Owner

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!

@daveola
Copy link

daveola commented Jan 30, 2017

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.

@pknowles
Copy link

pknowles commented Mar 21, 2017

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.

@chrisdtaylor
Copy link

chrisdtaylor commented Nov 23, 2017

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

@gcurchod
Copy link

gcurchod commented Jan 24, 2019

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".

@diradev01
Copy link

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 !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants