comparison 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
comparison
equal deleted inserted replaced
52297:3b67088aae99 52298:1a4bd2bec861
3524 else 3524 else
3525 /* Must have been Qnil. */ 3525 /* Must have been Qnil. */
3526 ; 3526 ;
3527 } 3527 }
3528 3528
3529 /* Set the WM leader property. GTK does this itself, so this is not
3530 needed when using GTK. */
3531 if (dpyinfo->client_leader_window != 0)
3532 {
3533 BLOCK_INPUT;
3534 XChangeProperty (FRAME_X_DISPLAY (f),
3535 FRAME_OUTER_WINDOW (f),
3536 dpyinfo->Xatom_wm_client_leader,
3537 XA_WINDOW, 32, PropModeReplace,
3538 (char *) &dpyinfo->client_leader_window, 1);
3539 UNBLOCK_INPUT;
3540 }
3541
3529 UNGCPRO; 3542 UNGCPRO;
3530 3543
3531 /* Make sure windows on this frame appear in calls to next-window 3544 /* Make sure windows on this frame appear in calls to next-window
3532 and similar functions. */ 3545 and similar functions. */
3533 Vwindow_list = Qnil; 3546 Vwindow_list = Qnil;