diff options
author | Jan Djärv <[email protected]> | 2003-08-21 19:54:47 +0000 |
---|---|---|
committer | Jan Djärv <[email protected]> | 2003-08-21 19:54:47 +0000 |
commit | 231d6cfb0c65a7ece2455e7fd0a488851a634778 (patch) | |
tree | a96f35f47b7a1457a5a484925abc178e21ce8a0a /src/xfns.c | |
parent | afa88464b1e4728c53d8225257b6dda73d676b17 (diff) |
Create and initialize a client leader window so session management
doesn't restart Emacs twice.
Diffstat (limited to 'src/xfns.c')
-rw-r--r-- | src/xfns.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/xfns.c b/src/xfns.c index af7ed7473e..439ddbfec2 100644 --- a/src/xfns.c +++ b/src/xfns.c @@ -3526,6 +3526,19 @@ This function is an internal primitive--use `make-frame' instead. */) ; } + /* 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 |