Rush / wayland-push-to-talk-fix

This fixes the inability to use push to talk in Discord when running Wayland
MIT License
57 stars 12 forks source link

Is it supposed to steal focus? #16

Open pbellchambers opened 2 months ago

pbellchambers commented 2 months ago

OS: Ubuntu 24.04 Discord: 0.0.66 (flatpak) Key config: sudo ./push-to-talk -k BTN_EXTRA -n MOUSE9 /dev/input/by-id/usb-BenQ_ZOWIE_BenQ_ZOWIE_Gaming_Mouse-event-mouse

This works fine for me, but whenever I use the push to talk button on my mouse, it switches the current window back to Discord. If I close discord so that it's only visible in the system tray, then it works perfectly and remains in the other application.

Obviously not a big issue since the workaround is quite simple, but is this the expected behaviour?