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

keybinds: add all flag to closewindow dispatcher #9602

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

nnyyxxxx
Copy link
Contributor

@nnyyxxxx nnyyxxxx commented Mar 12, 2025

fixes #9243

example:

hyprctl dispatch closewindow all:class:Alacritty

if (!w->m_bIsMapped || (w->isHidden() && !g_pLayoutManager->getCurrentLayout()->isWindowReachable(w)))
continue;

g_pCompositor->m_vWindows = {w};
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what the fuck is this. Just extract the matching logic to CWindow just like CWorkspace has matchesStaticSelector and use that. What the f

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

xD

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what the fuck is this. Just extract the matching logic to CWindow just like CWorkspace has matchesStaticSelector and use that. What the f

meh.... current approach is good... if it works it works

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if it works it works

no.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what the fuck is this. Just extract the matching logic to CWindow just like CWorkspace has matchesStaticSelector and use that. What the f

wouldn't this just dupe code more tho

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no

@nnyyxxxx nnyyxxxx force-pushed the patch-3 branch 2 times, most recently from 80b5ff0 to 550e456 Compare March 12, 2025 20:08
@nnyyxxxx nnyyxxxx changed the title feat(keybinds): add all flag to closewindow dispatcher keybinds: add all flag to closewindow dispatcher Mar 12, 2025
@vaxerski
Copy link
Member

well now you should make getWindowByRegex use that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

all flag for closewindow
2 participants