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.grid.set functions randomly using wrong grid #3223

Open
garymh opened this issue May 26, 2022 · 5 comments
Open

hs.grid.set functions randomly using wrong grid #3223

garymh opened this issue May 26, 2022 · 5 comments

Comments

@garymh
Copy link

garymh commented May 26, 2022

Hi - I think a few Hammerspoon versions ago (or macOS versions, potentially?) my keybindings have gotten a little inconsistent for grids.

For instance: I have a binding to set the current window to the maximum size of the screen (hs.grid.set(0, 0, grid_max_width, grid_max_height))

Trying it in Safari right now works, but if I do some ⌘-Tabbing and land on another application and use the same binding, it will stretch to only one half of the screen even when passed the same parameters.

I'd be happy to include some logs or maybe an example - I just wanted to get an issue made before I forget :)

@garymh
Copy link
Author

garymh commented May 27, 2022

In fact, it seems to be most of the window moving functions... something underlying with macOS might have changed?

Curiously it only seems to affect certain windows too. Kitty terminal works fine but Firefox and Safari have trouble.

@liancheng
Copy link

Not quite sure whether my issue shares the same root cause: #3224

@garymh
Copy link
Author

garymh commented Jun 1, 2022

@liancheng I think you're right! That sounds exactly like what's happening to me 🤔

@rsefer
Copy link
Contributor

rsefer commented Jul 2, 2022

@garymh I have been experiencing this same thing for at least a couple of months now so wanted to add a +1. None of my relevant window management code has changed in that time frame, but macOS has been updated.

macOS 12.4, M1 Pro

@garymh
Copy link
Author

garymh commented Jul 2, 2022

@garymh I have been experiencing this same thing for at least a couple of months now so wanted to add a +1. None of relevant my window management code has changed in that time frame, but macOS has been updated.

macOS 12.4, M1 Pro

Same! It doesn’t look like any of the grid functionality has changed in Hammerspoon itself, either. I agree macOS looks like the culprit…

I wonder if HS has to be changed to work with whatever the macOS change was, or is this a bug?

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

3 participants