GridMove icon indicating copy to clipboard operation
GridMove copied to clipboard

Large gaps between windows on Win10

Open mowies opened this issue 9 years ago • 28 comments

On Win10, I have really big gaps when i put windows side by side using gridmove. I think this happens due to the larger window borders in earlier Windows versions compared to Windows 10.

mowies avatar Jun 29 '16 13:06 mowies

Yes, this is something you see in all older programs of this kind, e.g. WinSplit Revolution, Power Resizer etc.

Robbson avatar Jun 29 '16 18:06 Robbson

Is there a way to change the calculation of window borders in the program? I couldn't find it.

mowies avatar Jul 02 '16 11:07 mowies

Did you find any solution?

Huseriato avatar Sep 02 '16 05:09 Huseriato

No, unfortunately not.

mowies avatar Sep 02 '16 05:09 mowies

This is annoying me since windows 10 is released. I've never found a better window manager than GridMove. I'm using it since first release. How do you deal with the problem? Are you using another one?

Huseriato avatar Sep 02 '16 05:09 Huseriato

Yeah it's annoying me too. No still use GridMove and just adjust the windows by hand so that the gaps are filled. I looked into the issue a bit more but I can't seem to find where the corner positions of the windows get read out from Windows. It could of course also be an issue of Windows itself that the window positions are just off because of the new window design of Win10.

mowies avatar Sep 02 '16 05:09 mowies

I've found a fixed offset in code:

        If not canceled
        {
          if(!AeroEnabled)
            WinMove,ahk_id %gui2hwnd%, ,%GridLeft%,%GridTop%,%GridWidth%,%GridHeight%
          else
          {
            left:=GridLeft + 3
            top:=GridTop + 3
            width:=GridWidth - 6
            height:=GridHeight - 6
            WinMove,ahk_id %gui2hwnd%, ,%Left%,%Top%,%Width%,%Height%
          }
        }

Some Windows (for example the window of the application "Telegram") are resized properly, so I think the !AeroEnabled flag is used here. May be it's window dependend.

Huseriato avatar Sep 02 '16 07:09 Huseriato

I've tried to get it working. The GitHub version seems to be outdated. The helper.ahk is completely missing. The Grid-Loader has fixed templates inside (no file selection). The whole application is not running, when removing the helper/first run code. May be the auther has a new version or has lost its code and uploaded an old backup 4 years ago.

Huseriato avatar Sep 02 '16 08:09 Huseriato

I've fixed it using the Aero Lite Theme in Windows 10. But I think it's no solution for everyone. http://winaero.com/blog/enable-the-hidden-aero-lite-theme-in-windows-10/

Huseriato avatar Sep 02 '16 09:09 Huseriato

Fix WinMove function for Windows 10 https://github.com/mr-rak/GridMove

mr-rak avatar Sep 14 '16 21:09 mr-rak

Wow, really cool. Thank you!

Huseriato avatar Sep 15 '16 06:09 Huseriato

Thank you very much for the fix @mr-rak !

mowies avatar Oct 07 '16 09:10 mowies

I was annoyed by this issue too. I've found making my grid areas 14 pixels wider and taller to be an acceptable workaround for me. I subtract 7 pixels from the left, top, and add 7 to the right,bottom.

eg. this is the first part of my 4k_1366-160-874.grid

[1]                                                    
  TriggerTop    = [Monitor1Top] - 7                    
  TriggerRight   = [Monitor1Left] + 1366 + 7           
  TriggerBottom = [Monitor1Height] + 7                 
  TriggerLeft   = [Monitor1Left] -7                    
                                                       
[2]                                                    
  TriggerTop    = [Monitor1Top] - 7                    
  TriggerRight   = [Monitor1Left] + 1366 + 1600 +7     
  TriggerBottom = [Monitor1Height] + 7                 
  TriggerLeft   = [Monitor1Left] + 1366 -7             
                                                       
[3]                                                    
  TriggerTop    = [Monitor1Top] - 7                    
  TriggerRight   = [Monitor1Right] + 7                 
  TriggerBottom = [Monitor1Height] / 4 * 3 - 50 +7     
  TriggerLeft   = [Monitor1Left] + 1366 + 1600 -7      

tmuka avatar Mar 15 '17 18:03 tmuka

@mr-rak Did you send a PR? It'd be great to have this merged back into the parent repo.

idvorkin avatar Jul 10 '17 01:07 idvorkin

Apparently someone else will have to do that for @mr-rak, as he seems to have taken a sabbatical like the original GridMove author?

VulcanTourist avatar Nov 29 '17 19:11 VulcanTourist

Yup. But his solution works for me at least

mowies avatar Nov 29 '17 23:11 mowies

Yes, thankfully it does for me as well. I am not fond of the alternatives to GridMove.

VulcanTourist avatar Nov 29 '17 23:11 VulcanTourist

How did you guys get mr-rak's fix to apply, it doesn't seem to change anything for me. I'm not very versed with AHK so if there is something special to do I may have missed it.

jechin1 avatar Jan 07 '18 04:01 jechin1

Many thanks to Mr Rak for his Windows 10 fix.

mlgibbons avatar Feb 10 '18 12:02 mlgibbons

Fix WinMove function for Windows 10 https://github.com/mr-rak/GridMove

Thank you mr-rak.

milynot avatar Jan 26 '19 01:01 milynot

Fix WinMove function for Windows 10 https://github.com/mr-rak/GridMove

Yes, thank you! It's always fun when you setup a new computer and come across your own posts on the web about issues you encountered years ago! I'm using the @mr-rak fix fork and it's working great. Thanks!

tmuka avatar Feb 18 '20 14:02 tmuka

Check out fancy zones. Similar idea and works great.

https://github.com/microsoft/PowerToys/blob/master/src/modules/fancyzones

idvorkin avatar Feb 20 '20 03:02 idvorkin

Check out fancy zones. Similar idea and works great.

https://github.com/microsoft/PowerToys/blob/master/src/modules/fancyzones

that seems like it has potential for drag and drop fans. I love gridmove for the grid position keyboard shortcuts!

tmuka avatar Feb 21 '20 02:02 tmuka

How did you guys get mr-rak's fix to apply, it doesn't seem to change anything for me. I'm not very versed with AHK so if there is something special to do I may have missed it.

Maybe a little late: You will need AutoHotKey installed (it's linked in his repo). Download mr-rak full repo and go into the packaging. There is a compile.bat - I don't know why, but the pathes are wrong. Replace with the following:

"C:\Program Files\AutoHotkey\Compiler\Ahk2Exe.exe" /in ../GridMove.ahk /out ../GridMove.exe /icon ../Images\GridMove.ico

And run the file. After that you'll have a GridMove.exe in the root-Directory of your downloaded GridMove copy of the mr-rak Repository. You can than use your grids as normal and run GridMove.exe.

Note: If you had overwritten your current installation of GridMove with the copy of mr-rak, than make sure, that you'd stopped GridMove before running compile.bat.

Huseriato avatar Jun 08 '20 09:06 Huseriato

Check out fancy zones. Similar idea and works great.

https://github.com/microsoft/PowerToys/blob/master/src/modules/fancyzones

That has a mandatory installation (no portable mode planned), see https://github.com/microsoft/PowerToys/issues/598#issuecomment-692483966

GitMensch avatar Sep 15 '20 06:09 GitMensch

Why are you closing this? The problem is still there and not fixed at all.

Huseriato avatar Sep 17 '20 05:09 Huseriato

The issue is so old already and the project doesn't seem to be maintained anymore. But I can also leave it open if that helps.

mowies avatar Sep 17 '20 06:09 mowies