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

hs.layout.apply is confused by screens that are higher than the main one #1522

Open
farcaller opened this issue Aug 30, 2017 · 0 comments
Open

Comments

@farcaller
Copy link

Here's a sample session with one of my screens:

> screens.vertical:frame()
hs.geometry.rect(2560.0,-733.0,1440.0,2560.0)
> hs.grid.getGrid(screens.vertical)
hs.geometry.size(6,7)
> hs.inspect(hs.grid.getCell('0,0 1x1', screens.vertical))
{
  h = 365.71428571429,
  w = 240.0,
  x = 2560.0,
  y = -733.0
}

if I use this frame in gs.layout.apply, the window is positioned in the very bottom of the screen instead of the top. I believe that happens because of https://github.com/Hammerspoon/hammerspoon/blob/master/extensions/layout/init.lua#L231 but I see no logical explanation for that code.

Any hints on how to fix this?

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

1 participant