Skip to content
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 unresponsive to touch input[BUG] #122

Open
2 tasks done
Mahgozar opened this issue Mar 14, 2024 · 3 comments
Open
2 tasks done

Rofi unresponsive to touch input[BUG] #122

Mahgozar opened this issue Mar 14, 2024 · 3 comments
Labels

Comments

@Mahgozar
Copy link

Rofi version (rofi -v or git commit in case of build issue)

1.7.5+wayland3-3-g47ae31eb (makepkg)

Configuration

https://gist.github.com/Mahgozar/e2f5afb41231f13dfaf91e3d90d6b264

Theme

https://gist.github.com/Mahgozar/381d21193b224f58bb83ac852fa972c6

Timing report

No response

Launch command

rofi -show drun --show-icons

Step to reproduce

launch rofi
try to launch an app with touch input
nothing happens

Expected behavior

after clicking on the apps with touch screen they are expected to be launched

Actual behavior

unresponsive to touch input

Additional information

No response

Using wayland display server protocol

  • Yes, I use rofi with wayland support

I've checked if the issue exists in the latest stable release

  • Yes, I have checked the problem exists in the latest stable version
@Mahgozar Mahgozar added the bug label Mar 14, 2024
@lVentus
Copy link

lVentus commented Jun 22, 2024

is this solved? I have same problems

@Dutt-A
Copy link

Dutt-A commented Jul 19, 2024

It is also unresponsive to mouse input for me. Perhaps mouse/trackpad/touch support was not added anyways, since you would need to rewrite a few things since you wouldn't be able to fall back on xinput.

@ppenguin
Copy link

ppenguin commented Jul 23, 2024

For mouse input you can do this (adapt to your theme/config):

rofi -me-select-entry 'MousePrimary' -me-accept-entry '!MousePrimary' -theme ~/.config/rofi/appmenu.rasi -show drun -show-icons

For me this works better than the default with a mouse, i.e. click selects and release accepts. This works the same with trackpad for me (under Hyprland).

However, I came here because touch screen also isn't working. I checked with wev and saw that I get wl_touch: down and wl_touch: up events, which is of course distinctly different from a mouse button event (touchpad with tap generates the same event as MousePrimary click). So I guess we need to be able to configure the correct event for touch screen (i.e. wl_touch) as a keysym in the config. The big question is how?

(Ideally something semantically clear as rofi -me-select-entry 'TouchDown' -me-accept-entry 'TouchUp' ?)

EDIT: I took a quick look at the source, and noticed that input events are handled by libnkutils, which doesn't appear to have specific "modern" libinput support, i.e. things seem to be handled at the level of key-presses and pointer/button events. That could mean that to make touch screen work, one would additionally need something like https://github.com/libts/tslib and/or modify/overhaul the input handling in some other way?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants