Kljunas2 / activate-linux

Activate Linux watermark for Wayland
MIT License
117 stars 8 forks source link

Fix: passthrough click events #11

Closed swwind closed 1 year ago

swwind commented 1 year ago

Fix #8

Maybe it's possible now.

I don't know exactly what this code does, but it seems to work.

wmww commented 1 year ago

Just passing by and noticed this leaks both rectangle and region. You probably want to free() the rectangle (or don't use a dynamically allocated rectangle at all) and call cairo-region-destroy() on the region after the call to gtk_widget_input_shape_combine_region().

Kljunas2 commented 1 year ago

@wmww thanks for the tip.