-
Notifications
You must be signed in to change notification settings - Fork 182
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
Window rules no longer work on context menus #2020
Comments
The focusable part of this bug is likely the same problem which causes #2007 . There is a patch there waiting to be tested, maybe try it out if you can compile from source. About the |
I made a fresh install of Wayfire with the patch and used the default config file, where i only changed the [window-rules] section:
Unfortunately it has not fixed the issue with the context menus. I also again tried to set everything to be transparent:
which yielded the same result as before. On a more positive note: The patch seems to have fixed the issue described in #2007. Menus in Xwayland applications open without the animation. |
You also need alpha plugin enabled, though you say default config file so I expect it is enabled. However you can check the log with |
Hmm, I dug a little bit deeper and I can see what the problem is. I erroneously assumed window-rules are used just for toplevel windows and basically removed support for window-rules of non-toplevel windows. I'll re-add support for the 0.8.1 release. In the meantime, you could try the alternative to window rules which is ipc-scripts: enable the plugins #!/usr/bin/python3
import os
from wayfire_socket import *
addr = os.getenv('WAYFIRE_SOCKET')
sock = WayfireSocket(addr)
sock.watch()
while True:
msg = sock.read_message()
# The view-mapped event is emitted when a new window has been opened.
if "event" in msg and msg["event"] == "view-mapped":
view = msg["view"]
if view["focusable"] == False:
sock.set_view_alpha(view["id"], 0.8) |
That works. Thanks a ton! |
I was just going through the code to see how to re-introduce the functionality but then I saw that set alpha is actually the only supported operation for non-toplevel windows such as the context menus or tooltips you described. So in #2032 I have added only the |
Describe the bug
In 0.7.5 the window rule
on created if focusable is false then set alpha 0.8
caused all context menus and tooltips to be transparent. When I updated to 0.8.0, without changing my config file, this stopped working.Even the rule
on created then set alpha 0.8
, which should affect everything, doesn't make context menus transparent.However, manually changing the opacity of context menus with the key binding works fine.
To Reproduce
Steps to reproduce the behavior:
on created if focusable is false then set alpha 0.8
oron created then set alpha 0.8
Wayfire version
AUR-package 0.8.0-3
The text was updated successfully, but these errors were encountered: