You've already forked android_translation_layer
mirror of
https://gitlab.com/android_translation_layer/android_translation_layer.git
synced 2025-10-27 11:48:10 -07:00
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:
@@ -19,9 +19,14 @@ struct _AndroidLayout {
|
||||
jobject view;
|
||||
int width;
|
||||
int height;
|
||||
int real_width;
|
||||
int real_height;
|
||||
gboolean needs_allocation;
|
||||
};
|
||||
|
||||
GtkLayoutManager *android_layout_new(jobject view);
|
||||
void android_layout_set_params(AndroidLayout *layout, int width, int height);
|
||||
|
||||
void widget_set_needs_allocation(GtkWidget *widget);
|
||||
|
||||
#endif // ANDROID_LAYOUT_H
|
||||
Reference in New Issue
Block a user