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

Large gaps between windows on Win10 #10

Open
mowies opened this issue Jun 29, 2016 · 27 comments
Open

Large gaps between windows on Win10 #10

mowies opened this issue Jun 29, 2016 · 27 comments

Comments

@mowies
Copy link

mowies commented Jun 29, 2016

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.

@Robbson
Copy link

Robbson commented Jun 29, 2016

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

@mowies
Copy link
Author

mowies commented Jul 2, 2016

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

@Huseriato
Copy link

Did you find any solution?

@mowies
Copy link
Author

mowies commented Sep 2, 2016

No, unfortunately not.

@Huseriato
Copy link

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?

@mowies
Copy link
Author

mowies commented Sep 2, 2016

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.

@Huseriato
Copy link

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

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

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/

@mr-rak
Copy link

mr-rak commented Sep 14, 2016

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

@Huseriato
Copy link

Wow, really cool. Thank you!

@mowies
Copy link
Author

mowies commented Oct 7, 2016

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

@tmuka
Copy link

tmuka commented Mar 15, 2017

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      

@idvorkin
Copy link

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

@VulcanTourist
Copy link

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

@mowies
Copy link
Author

mowies commented Nov 29, 2017

Yup. But his solution works for me at least

@VulcanTourist
Copy link

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

@jechin1
Copy link

jechin1 commented Jan 7, 2018

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.

@mlgibbons
Copy link

mlgibbons commented Feb 10, 2018

Many thanks to Mr Rak for his Windows 10 fix.

@milynot
Copy link

milynot commented Jan 26, 2019

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

Thank you mr-rak.

@tmuka
Copy link

tmuka commented Feb 18, 2020

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!

@idvorkin
Copy link

Check out fancy zones. Similar idea and works great.

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

@tmuka
Copy link

tmuka commented Feb 21, 2020

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!

@Huseriato
Copy link

Huseriato commented Jun 8, 2020

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.

@GitMensch
Copy link

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 microsoft/PowerToys#598 (comment)

@mowies mowies closed this as completed Sep 16, 2020
@Huseriato
Copy link

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

@mowies
Copy link
Author

mowies commented Sep 17, 2020

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 mowies reopened this Sep 17, 2020
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

No branches or pull requests