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
Dragging windows is broken since 2.4.0 #566
Comments
Please fix the version you mentioned (2.2.4?). |
17.3" Laptop 1920x1080 (1) Therefore monitor 1 is denser (and everything appears smaller because Windows sucks at DPI Scaling). Yes I'm still running 8.1. Putting the option |
So do I understand right? If you drag mintty from one external monitor to the other, both window and font size get larger? And if you drag it back to the previous external monitor, it gets larger again? |
Your initial report starts "Since 1.2.4..."; what's 1.2.4? |
Sorry it's a mistype, I forgot the real version number! I'll try to get a video soon. |
I tried to use a screen recorder but it just goes wild on this laptop, and so I resorted to using my tablet's camera (which is pretty bad) as my phone camera is ruined. https://www.youtube.com/watch?v=JcLElyf6SWA Hopefully this shows what I mean. =) |
The snapping effects are discomforting; I have not seen anything like it in my own multi-monitor experiments. Some comments:
|
I'm seeing the same issue, also running Windows 8.1 and Mintty 2.4.0. If it helps both my monitors run the same resolution (1680X1050) with the same scaling. Also the video posted by @ElvenSpellmaker doesn't really show it, but going from monitor 2 (on the right) to monitor 1 (left), I can get the "resize" thing to happen more than once if I keep dragging the window towards the left. EDIT: I also just realized that moving the window with the keyboard (win+arrows) does NOT produce the issue. |
@FredDeschenes: You're right, I was moving it slowly for the demonstration, but if you move it quickly the font enlarges once for every jerk back to the previous screen. And yes, I can move with the Win+Arrows too. =) |
If it helps, the terminal resizes so that it still has the same number of lines and columns as before the resize of the text. |
which is a tweak that I introduced on purpose in 2.4.0 to stabilize the terminal size after DPI adaptation. |
There are actually two changes in this commit:
and
Can you test them separately? |
By itself, removing both " * 20 / 19"s fixes the issue, but the "mouse weirdness" (for the lack of a better word) is still there (cursor doesn't stay in the same place on the title bar dragging across screens). This is fixed by commenting the call to "win_set_chars". |
Thanks a lot. I wonder, though, why this happens at all; this code is supposed to be activated on DPI changes, but your monitors are identical... |
Yeah that's really weird, even if they weren't the same DPI (which they might be now that I think of it), I really don't see how this could stack up for each monitor switch. |
Please check repository version. |
Looks good, thanks for the fix! |
Seems good to me! |
This issue has been bothering me for a couple of weeks, but finally looked in to it today, and good to see it already fixed now. Thanks. I've reverted back to 2.3.7 (via Cygwin) for the time being. |
@ElvenSpellmaker: Just re-upgraded to 2.4.0 and tried it. Yes, it does solve the problem. |
Fixed in 2.4.1. |
This option |
Actually, with 2.4.1, this workaround should not be needed anymore. |
With support for Windows DPI handling V2 (#774), this should now work without DPI disabling. |
Released 2.9.0. |
Since 2.4.0 on Windows 8.1 dragging windows onto my second desktop from the third causes them to jolt around, enlarge the font and the size of the terminal and won't move more than halfway over my second desktop (so I cant drag them to the first desktop of three).
If I use the Windows key to move a window to the first desktop and then try dragging to the third, then the terminal gets larger (and zooms in) with each monitor I pass.
I'd like to say my middle (second) monitor is via USB3.0 --> HDMI if that makes a difference.
Note I am not pressing any keys while moving the window.
The text was updated successfully, but these errors were encountered: