SameBoy
SameBoy copied to clipboard
Mouse doesn't work if "Open ROM" is clicked with mouse
Operating System: openSUSE Tumbleweed 20220706 KDE Plasma Version: 5.25.2 KDE Frameworks Version: 5.95.0 Qt Version: 5.15.5 Kernel Version: 5.18.9-1-default (64-bit) Graphics Platform: X11
When clicking "Open ROM", the mouse doesn't work in the file picker window anymore. When launching "Open ROM" with the keyboard, the mouse works.
Compiling with clang or gcc, and selecting debug or release builds didn't make a difference. I tested previous sameboy releases and they show the same bug.
Hmm, I could have a look at this but this is most likely a bug with KWin or even GTK itself. Might be worth to ask over there as well.
I tested this in a fresh Ubuntu 22.04 VM with default settings, and the bug does not appear. (Ubuntu 22.04 uses Gnome 42 on Wayland in standard configuration)
I did some more testing:
affected: KWin (X11) LXQt (X11)
unaffected: KWin (Wayland) Gnome (Wayland)
I compiled both rgbds and SameBoy from source.
This could be a Wayland issue, might be worth to report this as "A process that opens a new window while a mouse button is down inside another window cannot interact with the newly created window" and refer them to SameBoy as an example. I'll see if I can find a way to work around this.
Why does Wayland work if it's unaffected by the bug? Shouldn't it be the opposite?
Err yes, I mean X11