diff options
author | Matthias Clasen <mclasen@redhat.com> | 2020-03-19 14:42:03 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2020-03-19 15:37:35 -0400 |
commit | 2c8b5c42afb33cc366cc4855002338e71f3f7f2f (patch) | |
tree | e7028fcb0d31c0bba5ed34563e3fe4c07f9b813d | |
parent | 3ac4c76b18cc89a841ce09f0943539f16988fd21 (diff) | |
download | gtk+-textview-touch-fix.tar.gz |
wip: Fix inspector inspect buttontextview-touch-fix
-rw-r--r-- | gtk/inspector/inspect-button.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/gtk/inspector/inspect-button.c b/gtk/inspector/inspect-button.c index 6a88555052..c89fc78f5e 100644 --- a/gtk/inspector/inspect-button.c +++ b/gtk/inspector/inspect-button.c @@ -99,9 +99,7 @@ on_inspect_widget (GtkInspectorWindow *iw, { GtkWidget *widget; -#if 0 - gdk_surface_raise (gtk_native_get_surface (GTK_NATIVE (iw))); -#endif + gtk_window_present (GTK_WINDOW (iw)); clear_flash (iw); @@ -124,10 +122,8 @@ reemphasize_window (GtkWidget *window) gtk_widget_set_opacity (window, 1.0); gtk_window_set_extra_input_region (GTK_WINDOW (iw), NULL); } -#if 0 else - gdk_surface_raise (gtk_native_get_surface (GTK_NATIVE (window))); -#endif + gtk_window_present (GTK_WINDOW (window)); } static gboolean handle_event (GtkInspectorWindow *iw, GdkEvent *event); @@ -210,10 +206,8 @@ gtk_inspector_on_inspect (GtkWidget *button, gtk_window_set_extra_input_region (GTK_WINDOW (iw), region); cairo_region_destroy (region); } -#if 0 else - gdk_surface_lower (gtk_native_get_surface (GTK_NATIVE (iw))); -#endif + gdk_toplevel_lower (GDK_TOPLEVEL (gtk_native_get_surface (GTK_NATIVE (iw)))); g_signal_connect (iw, "event", G_CALLBACK (handle_event), NULL); } |