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

[Feat/bug] Don't grab windows until the cursor starts dragging #92

Open
khoidauminh opened this issue Oct 12, 2024 · 4 comments
Open

[Feat/bug] Don't grab windows until the cursor starts dragging #92

khoidauminh opened this issue Oct 12, 2024 · 4 comments

Comments

@khoidauminh
Copy link

When I click to exit the overview and the cursor happens to be on a window, the grab animation happens at an instant and disappears. Often this also breaks the layout that my windows are in.

Here's my config:

switchOnDrop = true
exitOnClick = true
centerAligned = true

Is there a way to implement so that windows are only grabbed when the user additionally starts dragging their mouse instead? I think it'll be neat as an option

Thanks!

@myamusashi
Copy link
Contributor

myamusashi commented Oct 12, 2024

For now, I don't think it's possible(at least for me), as Hyprland itself will automatically grab the window even if the user doesn't drag it, but I like this idea. Maybe you can open an issue and ask for that feature in Hyprland

@khoidauminh
Copy link
Author

I see, I'll try to open one over at Hyprland

@myamusashi
Copy link
Contributor

hyprwm/Hyprland#8143

@KZDKM
Copy link
Owner

KZDKM commented Oct 24, 2024

Hyprland does not necessarily have to support this. This plugin completely takes over mouse button event handling (at least when its configured to do so) while its active, so this feature would be possible to implement without upstream support.

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