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
static window rules are not applied on window open #5703
Comments
I updated which it did not fix the issue, I've updated the system info to match. |
Note this is a guess but, I am able to replicate this, and its for literally all static rules when opening pip in firefox and chromium. I'm guessing the problem is that when a pip is opened. It runs under the same process (notice how in hyprctl clients, it says pid as the same number every firefox and pip window, there is just one firefox process opening windows). I'm gonna dig deeper into this, but I'm thinking that only one evaluation is done per process. But i'll dig deeper into this right now and update when I learn more. Thanks for the request! Hope things are going well! |
Thanks, I hope things are going well for you too. That was also my thinking when I found this. |
As an alternative in the interim, I just tested using dispatchers and that works. So you can just set a dispatcher to pin active window and that will work.
|
I also see in the debug logs that it is identifying the spawned window and attempting to apply the static rules when its spawned. But it won't even set it as floating with a window rule. |
Interesting. I might use dispatchers for now, thanks for sharing that workaround. |
Still trying to figure out the problem here, debugging this has been a little painful but I'm gonna keep working on this. I'll keep this updated with progress. |
I wish I had a more satisfying answer but I must have been making some mistake earlier. For some reason it is working as expected now that I have the config correct. Please try the following for this to work in firefox pip, and replace dashes with spaces for chromium. Use
Make sure float comes first and pin comes second. Let me know how this works. |
It works, thanks! |
can this be closed then? |
Hyprland Version
System/Version info
Bug or Regression?
Bug
Description
Opening a picture in picture window in ungoogled-chromium does not apply static rules.
How to reproduce
Add
windowrulev2 = pin, floating:1
to your config.Crash reports, logs, images, videos
No response
The text was updated successfully, but these errors were encountered: