-
Notifications
You must be signed in to change notification settings - Fork 47
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
[BUG] Rofi window mode does not seem to work anymore in Hyprland #117
Comments
Hyprland version: hyprland 0.35.0-2 in Arch Linux |
Thanks, I have just tried (on Hyprland latest git revision) and it looks indeed broken. This should be filed in Hyprland issues IMO: |
@lbonn do you plan to report it yourself? Maybe you have more knowledge of the involved low-level mechanisms. I could only guess about wmctrl, but maybe that's not even related to the problem? |
@LorenzoBettini ok, done. I don't use Hyprland myself, if they are asking for more version details or testing, maybe you can assist at hyprwm/Hyprland#4829 :) |
@lbonn thanks. They've already answered in that issue but I seem to understand they mention a new procedure that must be implemented in the window mode of rofi, right? |
Yes, rofi is taking keyboard focus and we activate the target window before releasing the focus. It's not something that's really specified as far as I know but I also don't see why it should be such a problem in practice (would have to look into it). Releasing the keyboard interactivity before activating the window would complicate things a bit.
@alebastr any thoughts on this? |
I'm afraid I can't help from the implementation point of view, but I can test possible fixes in case you come up with something. |
This seems surprisingly easy to implement: XCB window mode calls We could add the missing implementation for |
I haven't tested on Hyprland, it may require full |
I'm afraid we should re-open this, since the problem shows up again in Hyprland 0.40. I've already raised an issue on Hyprland because it also happens in other programs changing the window: hyprwm/Hyprland#6236 |
@LorenzoBettini if it's another regression on hyprland side, I see no need to track it here. In case rofi-wayland need some changes to work on hyprland again (does not seem to be the case so far?), I would prefer opening another separate issue as this particular one has been resolved already and it quickly gets confusing to talk about two similar bugs with different root causes in the same discussion thread. |
Rofi version (rofi -v or git commit in case of build issue)
Version: 1.7.5+wayland1-48-gd06095b5 (makepkg)
Configuration
https://gist.github.com/LorenzoBettini/155b336f0a4ce302df771d7b542cebd1
Theme
https://gist.github.com/LorenzoBettini/4a3dff4c44060e9b08951ee205e050a0
Timing report
No response
Launch command
rofi -show window
Step to reproduce
Expected behavior
Once a window is selected it should be focused, and in case it's in another workspace, the workspace should also be switched
Actual behavior
It used to work before but now nothing happens.
Additional information
Maybe it's related to this:
Using wayland display server protocol
I've checked if the issue exists in the latest stable release
The text was updated successfully, but these errors were encountered: