[mutter] display: Kill #if 0'd support for _NET_RESTACK_WINDOW requests



commit 92340fd8da1edd5b9c182f6284a791f6a17ce27c
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Fri Apr 18 10:11:35 2014 -0400

    display: Kill #if 0'd support for _NET_RESTACK_WINDOW requests
    
    The code has been dead and broken for a long, long time now.

 src/core/display.c   |   38 --------------------------------------
 src/core/events.c    |    5 -----
 src/meta/atomnames.h |    5 -----
 3 files changed, 0 insertions(+), 48 deletions(-)
---
diff --git a/src/core/display.c b/src/core/display.c
index 75f6f43..bdf5a15 100644
--- a/src/core/display.c
+++ b/src/core/display.c
@@ -1489,44 +1489,6 @@ meta_display_queue_autoraise_callback (MetaDisplay *display,
   display->autoraise_window = window;
 }
 
-#if 0
-static void
-handle_net_restack_window (MetaDisplay* display,
-                           XEvent *event)
-{
-  MetaWindow *window;
-
-  window = meta_display_lookup_x_window (display,
-                                         event->xclient.window);
-
-  if (window)
-    {
-      /* FIXME: The EWMH includes a sibling for the restack request, but we
-       * (stupidly) don't currently support these types of raises.
-       *
-       * Also, unconditionally following these is REALLY stupid--we should
-       * combine this code with the stuff in
-       * meta_window_x11_configure_request() which is smart about whether to
-       * follow the request or do something else (though not smart enough
-       * and is also too stupid to handle the sibling stuff).
-       */
-      switch (event->xclient.data.l[2])
-        {
-        case Above:
-          meta_window_raise (window);
-          break;
-        case Below:
-          meta_window_lower (window);
-          break;
-        case TopIf:
-        case BottomIf:
-        case Opposite:
-          break;          
-        }
-    }
-}
-#endif
-
 void
 meta_display_sync_wayland_input_focus (MetaDisplay *display)
 {
diff --git a/src/core/events.c b/src/core/events.c
index ab58fd6..7741d8e 100644
--- a/src/core/events.c
+++ b/src/core/events.c
@@ -1512,11 +1512,6 @@ handle_other_xevent (MetaDisplay *display,
                      event->xproperty.atom ==
                      display->atom__XKB_RULES_NAMES)
               reload_xkb_rules (display->screen);
-#if 0
-            else if (event->xproperty.atom ==
-                     display->atom__NET_RESTACK_WINDOW)
-              handle_net_restack_window (display, event);
-#endif
 
             /* we just use this property as a sentinel to avoid
              * certain race conditions.  See the comment for the
diff --git a/src/meta/atomnames.h b/src/meta/atomnames.h
index 46e1a66..24b6304 100644
--- a/src/meta/atomnames.h
+++ b/src/meta/atomnames.h
@@ -179,10 +179,5 @@ item(_NET_WM_FRAME_DRAWN)
 item(_NET_WM_FRAME_TIMINGS)
 item(_NET_WM_WINDOW_OPACITY)
 
-#if 0
-/* We apparently never use: */
-/* item(_NET_RESTACK_WINDOW) */
-#endif
-
 /* eof atomnames.h */
 


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