diff options
Diffstat (limited to 'src/x11_in_gtk2.c')
-rw-r--r-- | src/x11_in_gtk2.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/x11_in_gtk2.c b/src/x11_in_gtk2.c index fd3547a..2e3cdf9 100644 --- a/src/x11_in_gtk2.c +++ b/src/x11_in_gtk2.c @@ -130,6 +130,7 @@ wrapper_free(SuilWrapper* wrapper) } } +#ifdef SUIL_FORWARD_KEYS static GdkFilterReturn event_filter(GdkXEvent* xevent, GdkEvent* event, gpointer data) { @@ -144,6 +145,7 @@ event_filter(GdkXEvent* xevent, GdkEvent* event, gpointer data) } return GDK_FILTER_CONTINUE; } +#endif SUIL_LIB_EXPORT SuilWrapper* @@ -166,8 +168,10 @@ suil_wrapper_new(SuilHost* host, wrapper->resize.handle = wrap; wrapper->resize.ui_resize = wrapper_resize; +#ifdef SUIL_FORWARD_KEYS GdkWindow* window = gtk_widget_get_window(GTK_WIDGET(wrap)); gdk_window_add_filter(window, event_filter, wrap); +#endif suil_add_feature(features, &n_features, LV2_UI__parent, (void*)(intptr_t)gtk_plug_get_id(wrap->plug)); |