[metacity] compositor: don't call XSelectInput



commit de3651ebb82d4c81e1642cf553eef5432dce64de
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Mon Mar 6 17:17:40 2017 +0200

    compositor: don't call XSelectInput
    
    It is already done in meta_window_new.

 src/compositor/meta-compositor-xrender.c |    7 -------
 1 files changed, 0 insertions(+), 7 deletions(-)
---
diff --git a/src/compositor/meta-compositor-xrender.c b/src/compositor/meta-compositor-xrender.c
index 58c85b2..de5e7d8 100644
--- a/src/compositor/meta-compositor-xrender.c
+++ b/src/compositor/meta-compositor-xrender.c
@@ -2056,7 +2056,6 @@ add_win (MetaCompositorXRender *xrender,
   MetaDisplay *display = meta_screen_get_display (xrender->screen);
   Display *xdisplay = meta_display_get_xdisplay (display);
   MetaCompWindow *cw;
-  gulong event_mask;
 
   /* If already added, ignore */
   if (find_window (xrender, xwindow) != NULL)
@@ -2072,12 +2071,6 @@ add_win (MetaCompositorXRender *xrender,
       return;
     }
 
-  /* If Metacity has decided not to manage this window then the input events
-     won't have been set on the window */
-  event_mask = cw->attrs.your_event_mask | PropertyChangeMask;
-
-  XSelectInput (xdisplay, xwindow, event_mask);
-
   cw->back_pixmap = None;
   cw->mask_pixmap = None;
 


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