[mutter/wip/carlosg/x11less-preparations: 92/93] compositor: Drop error trap



commit 32e81519e84c934c3f58af9231c2c06d935ccee6
Author: Carlos Garnacho <carlosg gnome org>
Date:   Mon Feb 25 18:45:30 2019 +0100

    compositor: Drop error trap
    
    Code underneath seems to handle errors properly, and this is apparently
    here to save a few XSync()s on X11. Just drop this windowing dependent
    bit to make things cleaner.

 src/compositor/compositor.c | 5 -----
 1 file changed, 5 deletions(-)
---
diff --git a/src/compositor/compositor.c b/src/compositor/compositor.c
index 0854a198b..6aea4817d 100644
--- a/src/compositor/compositor.c
+++ b/src/compositor/compositor.c
@@ -664,11 +664,8 @@ meta_compositor_add_window (MetaCompositor    *compositor,
 {
   MetaWindowActor *window_actor;
   ClutterActor *window_group;
-  MetaDisplay *display = compositor->display;
   GType window_actor_type = G_TYPE_INVALID;
 
-  meta_x11_error_trap_push (display->x11_display);
-
   switch (window->client_type)
     {
     case META_WINDOW_CLIENT_TYPE_X11:
@@ -696,8 +693,6 @@ meta_compositor_add_window (MetaCompositor    *compositor,
    */
   compositor->windows = g_list_append (compositor->windows, window_actor);
   sync_actor_stacking (compositor);
-
-  meta_x11_error_trap_pop (display->x11_display);
 }
 
 void


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