diff src/xfns.c @ 52298:1a4bd2bec861

Create and initialize a client leader window so session management doesn't restart Emacs twice.
author Jan Djärv <jan.h.d@swipnet.se>
date Thu, 21 Aug 2003 19:54:47 +0000
parents a2208fe45c36
children a721547105d6
line wrap: on
line diff
--- a/src/xfns.c	Thu Aug 21 17:24:58 2003 +0000
+++ b/src/xfns.c	Thu Aug 21 19:54:47 2003 +0000
@@ -3526,6 +3526,19 @@
 	;
     }
 
+  /* Set the WM leader property.  GTK does this itself, so this is not
+     needed when using GTK.  */
+  if (dpyinfo->client_leader_window != 0)
+    {
+      BLOCK_INPUT;
+      XChangeProperty (FRAME_X_DISPLAY (f),
+                       FRAME_OUTER_WINDOW (f),
+                       dpyinfo->Xatom_wm_client_leader,
+                       XA_WINDOW, 32, PropModeReplace,
+                       (char *) &dpyinfo->client_leader_window, 1);
+      UNBLOCK_INPUT;
+    }
+
   UNGCPRO;
 
   /* Make sure windows on this frame appear in calls to next-window