rvaiya / warpd

A modal keyboard-driven virtual pointer
MIT License
2.85k stars 126 forks source link

Wayland: warpd looses focus when when popup inside IntelliJ idea shows up #291

Open matejdro opened 2 months ago

matejdro commented 2 months ago

Whenever a popup inside IntelliJ Idea (a Java app running under XWayland) appears, warpd will loose focus. Red square will remain, but focus will be back on the IntelliJ Idea (I can move the mouse and click/type normally):

https://github.com/rvaiya/warpd/assets/507922/3fa2bbef-aa8b-4d75-ba07-1821b7292eac

This might be a broader XWayland or Java thing, but I could only reproduce it in IntelliJ so far. This only appears to happen on Sway (Wayland), same setup works fine with native X11.

Steps to reproduce:

  1. Install both warpd and IntelliJ under Sway
  2. Open IntelliJ
  3. Trigger warpd
  4. Right click somewhere with warpd to open context menu

Running

Linux 6.8.2-arch2-1 #1 SMP PREEMPT_DYNAMIC Thu, 28 Mar 2024 17:06:35 +0000 x86_64 GNU/Linux Sway 1.9 warpd v1.3.5 (built from: 01650ea) IntelliJ IDEA 2023.3.4, Build #IU-233.14475.28, built on February 13, 2024