YaLTeR / niri

A scrollable-tiling Wayland compositor.
https://matrix.to/#/#niri:matrix.org
GNU General Public License v3.0
4.12k stars 123 forks source link

Pointer left / right click are confused #767

Closed geryzhydrox closed 3 weeks ago

geryzhydrox commented 3 weeks ago

Niri inteprets left click as right click, and vice versa. Here's some output from wev: (IMPORTANT: I only pressed left click up until serial 5423, and then only pressed right click from that point on. However, output alternates between "left" and "right") I have tried pkilling xwayland-satellite, which did not fix the issue, and switching to a different wayland session (sway), which did fix the issue, so the only logical conclusion to me here is that this must be due to Niri.

[13:      wl_pointer] frame
[13:      wl_pointer] button: serial: 5420; time: 1519546; button: 272 (left), state: 0 (released)
[13:      wl_pointer] frame
[13:      wl_pointer] button: serial: 5421; time: 1519620; button: 272 (left), state: 1 (pressed)
[13:      wl_pointer] frame
[13:      wl_pointer] button: serial: 5422; time: 1519692; button: 272 (left), state: 0 (released)
[13:      wl_pointer] frame
[13:      wl_pointer] button: serial: 5423; time: 1519998; button: 272 (left), state: 1 (pressed)
[13:      wl_pointer] frame
[13:      wl_pointer] button: serial: 5424; time: 1519998; button: 273 (right), state: 1 (pressed)
[13:      wl_pointer] frame
[13:      wl_pointer] button: serial: 5425; time: 1520074; button: 272 (left), state: 0 (released)
[13:      wl_pointer] frame
[13:      wl_pointer] button: serial: 5426; time: 1520074; button: 273 (right), state: 0 (released)
[13:      wl_pointer] frame
[13:      wl_pointer] button: serial: 5427; time: 1521623; button: 272 (left), state: 1 (pressed)
[13:      wl_pointer] frame
[13:      wl_pointer] button: serial: 5428; time: 1521623; button: 273 (right), state: 1 (pressed)
[13:      wl_pointer] frame
[13:      wl_pointer] button: serial: 5429; time: 1521695; button: 272 (left), state: 0 (released)
[13:      wl_pointer] frame
[13:      wl_pointer] button: serial: 5430; time: 1521695; button: 273 (right), state: 0 (released)
[13:      wl_pointer] frame
[13:      wl_pointer] button: serial: 5431; time: 1522854; button: 273 (right), state: 1 (pressed)
[13:      wl_pointer] frame
[13:      wl_pointer] button: serial: 5432; time: 1522854; button: 272 (left), state: 1 (pressed)

System Information

YaLTeR commented 3 weeks ago

niri does not interpret clicks, it handles whatever libinput gives it. Maybe you have some libinput settings set in sway that you need to set in niri too?

geryzhydrox commented 3 weeks ago

I don't really have any libinput settings in sway's config at all, but the input section in niri's config.kdl does include trackpoint, tablet, and touch which i don't have in sway's config... In any case, the issue somehow fixed itself without me really doing anything. So much for NixOS's promise of purity...

YaLTeR commented 3 weeks ago

Huh. Well, alright then. Maybe some hardware bug?