changeset 74535:49eed408d9b7

(XTframe_raise_lower): Comment out _NET_ACTIVE_WINDOW code.
author Chong Yidong <cyd@stupidchicken.com>
date Sat, 09 Dec 2006 18:38:59 +0000
parents 2e5bcc51bd2d
children 6fe1ce13ed7a
files src/xterm.c
diffstat 1 files changed, 14 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/src/xterm.c	Sat Dec 09 18:38:49 2006 +0000
+++ b/src/xterm.c	Sat Dec 09 18:38:59 2006 +0000
@@ -8753,20 +8753,26 @@
 {
   if (raise_flag)
     {
-      Lisp_Object frame;
-      const char *atom = "_NET_ACTIVE_WINDOW";
+      /* The following code is needed for `raise-frame' to work on
+	 some versions of metacity; see Window Manager
+	 Specification/Extended Window Manager Hints at
+	 http://freedesktop.org/wiki/Standards_2fwm_2dspec
+
+	 However, on other versions (metacity 2.17.2-1.fc7), it
+	 reportedly causes hangs when resizing frames.  */
+
+      /* Lisp_Object frame;
+         const char *atom = "_NET_ACTIVE_WINDOW"; */
 
       x_raise_frame (f);
-      /* See Window Manager Specification/Extended Window Manager Hints at
-         http://freedesktop.org/wiki/Standards_2fwm_2dspec */
-
-      XSETFRAME (frame, f);
-      Fx_send_client_event (frame, make_number (0), frame,
+
+      /* XSETFRAME (frame, f);
+         Fx_send_client_event (frame, make_number (0), frame,
                             make_unibyte_string (atom, strlen (atom)),
                             make_number (32),
                             Fcons (make_number (1),
                                    Fcons (make_number (time (NULL) * 1000),
-                                          Qnil)));
+				   Qnil))); */
     }
   else
     x_lower_frame (f);