-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
'rofi' not receiving keyboard input #267
Comments
Seems like something has been broken in recent commits. I was able to use rofi in sway without any problem just a day before yesterday. |
I run rofi like this: https://github.com/mikkeloscar/dotfiles/blob/33677ef833823eb1e679f3549a58177536b527f5/.config/i3/config#L39 it does work, but rofi doesn't get focus so you have to move the mouse to rofi before you can type. It has always been like that with sway for me. |
Yes, confirm that. Just didn't pay attention to this before. |
Can everyone here report their version of Xwayland please? |
I have: |
I have the same. |
Just tested out rofi on xorg-* 1.17.4, works fine. |
I also have the Arch Linux |
@WokSearedBacon how do you run |
Maybe something to do with termite running as a native wayland program, and urxvt running under Xwayland? |
It also works well with |
@mikkeloscar I have the same focus issue using your |
@mikkeloscar I run |
I can confirm this issue. I start rofi with exec and it doesn't accept keyboard input. |
Can also confirm, though I found that mouse clicking isn't necessary, any mouse activity will work, and not just on the rofi 'window' to gain focus, like @mikkeloscar . Secondly, upon initially starting sway from a tty, nothing renders (except the mouse in the top left corner), until I move the mouse. Then the wallpaper and swaybar show up and I can start interacting with sway. I'm currently running sway-git-r1027.f994f00 (2015-12-18 branch "master"), and wlc-git-r824.6421f28 from the arch linux packages, which I understand are a bit out of date at this point. EDIT: Updated to 23df7ed, still happens (but I love my i3blocks working perfectly now!) |
This is still an issue for me, xorg-server-xwayland is I noticed that launching rofi via |
I have the same issue but as soon as I open a urxvt terminal rofi is able to receive keyboard input. If the workspace is empty rofi will not receive keyboard input. |
@DaanDeMeyer I join. I use Gnome Shell on Wayland, instead urxvt - conky with |
rofi deals with the keyboard in a weird way. It might be best to start discussions upstream about a native wayland port. |
Same problem here on archlinux with |
Same issue here with albert. |
Gonna close this because it's not really sway's problem. |
As far as I can tell, Rofi is now working fine even when it is started on an empty workspace. |
I was able to reproduce the above with a different procedure. I have 3 displays when I'm at work.
Just putting this here, could be useful to someone stumbling upon this issue, as it's a way to close rofi when it loses keyboard input that doesn't involve clicking on some app you don't wanna open anyway. |
info: (Not much of sample space) Ok I did some research. Here is what I came back with: hope this helps for something |
Stop writing reproduction steps, start writing patches |
tbf since I posted here a year ago I switched to wofi, which is wayland native. https://github.com/nwg-piotr/nwg-launchers has a dmenu replacement too. |
There is also an active fork of rofi working on wayland support: https://github.com/lbonn/rofi |
How can I? |
Here is a small bash script that uses 'swaymsg -t get_outputs' to obtain the focused output and |
I just figured out tthat Fortunately, It seems that That version should hopefully be more robust when some outputs are disabled. |
For those who came here from google search, workaround is to pass "-normal-window" to rofi. But then it gets alignment issues |
This comment was marked as outdated.
This comment was marked as outdated.
On ubuntu 22.04 I got it to work nicely with: |
|
Worked also on Fedora 39! |
Works on Archlinux using official package and wayland with Gnome |
Works in Debian12 aswell |
how to do that? |
Probably in the your configuration files. Those are just two command line flags. |
The rofi widget (https://github.com/DaveDavenport/rofi), such as that which can be displayed with the command
rofi -show run
, does not receive keyboard inputs of any kind within the sway session. Mouse inputs do work properly.As a result of the said command, XWayland logs a variation of:
I have been able to run rofi under Weston without a hitch, and with that I would believe that the cause did not originate from rofi, input drivers, or Wayland itself.
The text was updated successfully, but these errors were encountered: