[metacity] xrender: add error trap in sync_window_geometry



commit cc87afcd9aa0d98890cf1eb0571cb244b1189ad4
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Sat Apr 1 16:51:10 2017 +0300

    xrender: add error trap in sync_window_geometry
    
    Same code before 8b0ed193cfa771ec1f3ba70b272b9b14e02e6d3c commit
    was protected with error trap. Add it back.

 src/compositor/meta-compositor-xrender.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/compositor/meta-compositor-xrender.c b/src/compositor/meta-compositor-xrender.c
index 180a15a..3db7367 100644
--- a/src/compositor/meta-compositor-xrender.c
+++ b/src/compositor/meta-compositor-xrender.c
@@ -2934,6 +2934,8 @@ meta_compositor_xrender_sync_window_geometry (MetaCompositor *compositor,
   if (cw == NULL)
     return;
 
+  meta_error_trap_push (window->display);
+
   meta_window_get_input_rect (window, &rect);
 
   if (xrender->debug)
@@ -3071,6 +3073,8 @@ meta_compositor_xrender_sync_window_geometry (MetaCompositor *compositor,
   add_damage (xrender, damage);
 
   xrender->clip_changed = TRUE;
+
+  meta_error_trap_pop (window->display);
 }
 
 static void


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