[metacity] compositor: stop handling ReparentNotify events



commit f84d95f1d924471166edd16f0f784bb141a12c1b
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Sun Mar 5 19:48:16 2017 +0200

    compositor: stop handling ReparentNotify events

 src/compositor/meta-compositor-xrender.c |   20 --------------------
 1 files changed, 0 insertions(+), 20 deletions(-)
---
diff --git a/src/compositor/meta-compositor-xrender.c b/src/compositor/meta-compositor-xrender.c
index d78e717..5839b22 100644
--- a/src/compositor/meta-compositor-xrender.c
+++ b/src/compositor/meta-compositor-xrender.c
@@ -2697,22 +2697,6 @@ process_map (MetaCompositorXRender *xrender,
 }
 
 static void
-process_reparent (MetaCompositorXRender *xrender,
-                  XReparentEvent        *event,
-                  MetaWindow            *window)
-{
-  MetaCompositor *compositor = META_COMPOSITOR (xrender);
-  MetaDisplay *display = meta_compositor_get_display (compositor);
-  MetaScreen *screen;
-
-  screen = meta_display_screen_for_root (display, event->parent);
-  if (screen != NULL)
-    add_win (xrender, screen, window, event->window);
-  else
-    destroy_win (xrender, event->window);
-}
-
-static void
 process_destroy (MetaCompositorXRender *xrender,
                  XDestroyWindowEvent   *event)
 {
@@ -3109,10 +3093,6 @@ meta_compositor_xrender_process_event (MetaCompositor *compositor,
       process_map (xrender, (XMapEvent *) event);
       break;
 
-    case ReparentNotify:
-      process_reparent (xrender, (XReparentEvent *) event, window);
-      break;
-
     case DestroyNotify:
       process_destroy (xrender, (XDestroyWindowEvent *) event);
       break;


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