bk138 / gromit-mpx

Gromit-MPX is an on-screen annotation tool that works with any Unix desktop environment under X11 as well as Wayland.
GNU General Public License v2.0
980 stars 81 forks source link

Mouse input blocked in Wayland KDE Plasma 5 #197

Open nitrogar opened 6 months ago

nitrogar commented 6 months ago

Describe the bug I am using Manjaro in Wayland with two monitor setup, and when i start gromit the screen freezes until i kill gromit. the problem does not happen on xorg only Wayland.

I would like to help in finding the bug more precisely but i don't know how to debug it since it freezes the screen upon launch

but I noticed that not all the desktop environment are frozen I can spawn terminal using short-cut but the mouse pointer disappear and i cant interact with any opened window

To Reproduce just directly launching gromit on wayland

Environment (please complete the following information):

bk138 commented 6 months ago

OK, can repro on KDE Wayland Manjaro using Gromit-MPX flatpak.

bk138 commented 6 months ago

Seems like a Plasma bug/feature w.r.t https://docs.gtk.org/gtk3/method.Widget.input_shape_combine_region.html - maybe upgrading to Plasma 6 might help?

srikargottipati commented 6 months ago

I encountered the same issue on Plasma 6 Wayland too. Gromit tray icon does not even respond to mouse clicks. Atl+F9 also does not kill gromit, not fix the issue either.

bk138 commented 6 months ago

Hmm works in GNOME Wayland. Could someone open a report at upstream KDE and link this here? I can provide technical details then.

bk138 commented 6 months ago

Investigate #136

lmtreser commented 5 months ago

Hello! I'm running Kubuntu and I have the same problem. I am available to help. Greetings.

Operating System: Kubuntu 23.10 KDE Plasma Version: 5.27.8 KDE Frameworks Version: 5.110.0 Qt Version: 5.15.10 Kernel Version: 6.5.0-27-generic (64-bit) Graphics Platform: Wayland

bk138 commented 5 months ago

@lmtreser thanks a lot! If you're fit in C coding, what would help is a minimal gtk-based program to reproduce the issue for upstream KDE that creates a simple window that via gtk_widget_input_shape_combine_region() is transparent to input (lets clicks though) on KDE X11 but not KDE Wayland. This basically is what Gromit-MPX does.

lmtreser commented 5 months ago

Hello! When updating Kubuntu to 24.04 LTS, several things that didn't work are now OK... For example Gromit. Solved!

bk138 commented 5 months ago

@lmtreser can you post your exact KDE version for us please?

lmtreser commented 5 months ago

I rushed to post this message, because I just realized that by default Kubuntu 24.04 starts the session in X11 and not in Wayland... The problem persists on the Wayland session 😔.

Operating System: Kubuntu 24.04 KDE Plasma Version: 5.27.11 KDE Frameworks Version: 5.115.0 Qt Version: 5.15.13 Kernel Version: 6.8.0-31-generic (64-bit) Processors: 4 × 11th Gen Intel® Core™ i3-1115G4 @ 3.00GHz Memory: 7.4 GiB of RAM Graphics Processor: Mesa Intel® UHD Graphics