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

How to monitor the movement of the focused window? #3682

Open
Autumn-one opened this issue Sep 5, 2024 · 0 comments
Open

How to monitor the movement of the focused window? #3682

Autumn-one opened this issue Sep 5, 2024 · 0 comments

Comments

@Autumn-one
Copy link

I found that there is currently no way to monitor the movement of the window. I only discovered the windowMoved listening method, but this can only monitor the event after the window is moved. It doesn't work during the process of dragging the window

local windowFilter = hs.window.filter.new():setDefaultFilter()
windowFilter:subscribe(hs.window.filter.windowMoved, function(window)
    
end)
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