[gtk/present-toplevel: 14/54] inspector: Stop raising and lowering windows



commit a353254ad4f4e4b5a5d58dadf6ee5dc0fc76f0a3
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat Feb 29 12:55:13 2020 -0500

    inspector: Stop raising and lowering windows
    
    We should always be composited, so this should not
    matter in practice.

 gtk/inspector/inspect-button.c | 6 ++++++
 1 file changed, 6 insertions(+)
---
diff --git a/gtk/inspector/inspect-button.c b/gtk/inspector/inspect-button.c
index 57076dbbd0..6a88555052 100644
--- a/gtk/inspector/inspect-button.c
+++ b/gtk/inspector/inspect-button.c
@@ -99,7 +99,9 @@ on_inspect_widget (GtkInspectorWindow *iw,
 {
   GtkWidget *widget;
 
+#if 0
   gdk_surface_raise (gtk_native_get_surface (GTK_NATIVE (iw)));
+#endif
 
   clear_flash (iw);
 
@@ -122,8 +124,10 @@ 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
 }
 
 static gboolean handle_event (GtkInspectorWindow *iw, GdkEvent *event);
@@ -206,8 +210,10 @@ 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
 
   g_signal_connect (iw, "event", G_CALLBACK (handle_event), NULL);
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]