lib: set controller to capture phase

Just so we don't chance it and loose events to GTK.
This commit is contained in:
Christian Hergert 2023-02-15 19:22:57 -08:00
parent d533773cf7
commit 5657997f4a

View File

@ -770,6 +770,7 @@ mks_display_init (MksDisplay *self)
G_CALLBACK (mks_display_legacy_event_cb), G_CALLBACK (mks_display_legacy_event_cb),
self, self,
G_CONNECT_SWAPPED); G_CONNECT_SWAPPED);
gtk_event_controller_set_propagation_phase (controller, GTK_PHASE_CAPTURE);
gtk_widget_add_controller (GTK_WIDGET (self), controller); gtk_widget_add_controller (GTK_WIDGET (self), controller);
gtk_widget_set_focusable (GTK_WIDGET (self), TRUE); gtk_widget_set_focusable (GTK_WIDGET (self), TRUE);