rofi
rofi copied to clipboard
[BUG] Rofi doesn't disappear after releasing the indicated keys
Rofi version (rofi -v or git commit in case of build issue)
Version: 1.7.5+wayland2
Configuration
https://gist.githubusercontent.com/winteriscariot/342f950a91f05fbb52f2d0cfa33822d2/raw/eb62dd9b9cfcf4797da765db5a82e81ec6d0ae01/gistfile1.txt
Theme
https://gist.githubusercontent.com/winteriscariot/342f950a91f05fbb52f2d0cfa33822d2/raw/eb62dd9b9cfcf4797da765db5a82e81ec6d0ae01/gistfile1.txt
Timing report
No response
Launch command
rofi -show window -kb-accept-entry '!Alt+Tab,MousePrimary' -kb-row-right 'Alt-Tab'
Step to reproduce
launch rofi in wayland native with window mode using the alt-tab binding as set in labwc rc.xml
launch the command with the assigned keybinding
Expected behavior
The rofi window should disappear after I release alt-tab and focus the currently selected window
Actual behavior
Upon triggering the rofi command with the keybinding, the rofi window appears and stays. it does not disappear after I release 'alt tab'.
additionally, holding down alt and pressing tab repeatedly does not cycle through the rofi entries
Additional information
I'm basically using the same script on X11 and it works as expected.
I'm not sure if this is actually a bug or simply a limitation on the wayland native version of rofi
Using wayland display server protocol
- [X] Yes, I use rofi with wayland support
I've checked if the issue exists in the latest stable release
- [X] Yes, I have checked the problem exists in the latest stable version
@winteriscariot maybe you bound Alt-Tab to launching rofi in your compositor and it is eating up your key-presses?
I have not tried to reproduce the familiar Alt-Tab from classic desktops with rofi, it is a bit tricky
The problem has been discussed on the original rofi repo in this issue.
Proposed solution: -kb-accept-entry "!Alt-Tab,!Alt+Alt_L"
This is the solution proposed by the maintainer and should accept the entry when releasing Alt
key, but it is not working for me on rofi-wayland.
@Tommimon Actually, I was playing with this a few months ago and it almost works with the -global-kb
flag which was added in 1.7.5+wayland3. Full list of flags would be:
-kb-accept-entry '!Alt-Tab,!Alt+Alt_L,Return' -kb-row-down 'Alt+Tab,Down' -kb-row-up 'Alt+ISO_Left_Tab,Up' -global-kb
On sway, it still does not work with the first release of Alt sadly (eg. Alt-Tab-Release). But it works with subsequent Tab presses followed by release (Alt-Tab-Tab-Release). Problem has been with getting the modifiers status when rofi is launched, I think it is a sway/wayland limitation but it might be something with rofi's keybindings logic.
Same limitation on Hyprland. This is something that happened also on X at the beginning but later they fixed this issue in the original rofi repo, maybe it is possible to do it also on wayland.