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

workspacerules: fix on-created-empty window focus #7657

Merged
merged 1 commit into from
Sep 5, 2024

Conversation

sungyoonc
Copy link
Contributor

@sungyoonc sungyoonc commented Sep 5, 2024

Describe your PR, what does it fix/add?

Fix #6237

Because windows are technically spawned on the previous workspace, initial workspace token adds silent to the window. Thus the window created by on-created-empty doesn't get focused.

This MR fixes the issue by setting the window's initial workspace token to point to the newly created workspace.

Is there anything you want to mention? (unchecked code, possible bugs, found problems, breaking compatibility, etc.)

Nope

Is it ready for merging, or does it need work?

Ready

@diniamo
Copy link
Contributor

diniamo commented Sep 5, 2024

My build fails, probably a skill issue.

FAILED: /build/source/protocols/wayland.cpp /build/source/protocols/wayland.hpp 
cd /build/source && hyprwayland-scanner --wayland-enums /wayland.xml /build/source/protocols/
Couldn't load proto

@vaxerski vaxerski merged commit 0fad7a0 into hyprwm:main Sep 5, 2024
10 checks passed
@sungyoonc sungyoonc deleted the fix-on-created-empty branch September 6, 2024 01:40
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.

Some apps don't get focus when spawned with on-created-empty
3 participants