allocate transparent {WrapperWidget / JavaWidget} 0x0 and draw children in overflow area

This prevents overlay widgets from blocking touch events.

Androids ViewGroup.dispatchTouchEvent() loops over all children and only breaks if an eventhandler returns true. Gtk on the other hand stops at the first sensitive child. Even if the eventhandler returned false.
This commit is contained in:
Julian Winkler
2024-05-06 06:35:47 +02:00
parent 9fcec8b64c
commit f82af6ecb7
5 changed files with 70 additions and 4 deletions

View File

@@ -20,6 +20,9 @@ struct _WrapperWidget
jmethodID computeScroll_method;
int layout_width;
int layout_height;
int real_width;
int real_height;
gboolean needs_allocation;
};
struct _WrapperWidgetClass