Author: olivier
Date: 2008-10-22 19:48:34 +0000 (Wed, 22 Oct 2008)
New Revision: 28361

Modified:
   xfwm4/branches/xfce_4_4/NEWS
   xfwm4/branches/xfce_4_4/src/client.c
Log:
Add client windows to save set to avoid loosing all windows in case of crash

Modified: xfwm4/branches/xfce_4_4/NEWS
===================================================================
--- xfwm4/branches/xfce_4_4/NEWS        2008-10-22 11:58:06 UTC (rev 28360)
+++ xfwm4/branches/xfce_4_4/NEWS        2008-10-22 19:48:34 UTC (rev 28361)
@@ -18,6 +18,7 @@
 - Add support for NET_MOVERESIZE_WINDOW
 - Take gravity bit into account in configure resize only requests to comply 
   with standard (bug #3634)
+- Add client windows to save set to avoid loosing all windows in case of crash
 
 4.4.2
 =====

Modified: xfwm4/branches/xfce_4_4/src/client.c
===================================================================
--- xfwm4/branches/xfce_4_4/src/client.c        2008-10-22 11:58:06 UTC (rev 
28360)
+++ xfwm4/branches/xfce_4_4/src/client.c        2008-10-22 19:48:34 UTC (rev 
28361)
@@ -1946,6 +1946,7 @@
     getWindowName (display_info, c->window, &c->name);
     TRACE ("name \"%s\"", c->name);
     getTransientFor (display_info, screen_info->xroot, c->window, 
&c->transient_for);
+    XChangeSaveSet(display_info->dpy, c->window, SetModeInsert);
 
     /* Initialize structure */
     c->size = NULL;
@@ -2320,6 +2321,8 @@
     XUnmapWindow (display_info->dpy, c->frame);
     clientGravitate (c, REMOVE);
     XSelectInput (display_info->dpy, c->window, NoEventMask);
+    XChangeSaveSet(display_info->dpy, c->window, SetModeDelete);
+
     reparented = XCheckTypedWindowEvent (display_info->dpy, c->window, 
ReparentNotify, &ev);
 
     if (remap || !reparented)

_______________________________________________
Xfce4-commits mailing list
[email protected]
http://foo-projects.org/mailman/listinfo/xfce4-commits

Reply via email to