libwnck r1628 - in trunk: . libwnck



Author: vuntz
Date: Wed Jun 11 08:46:02 2008
New Revision: 1628
URL: http://svn.gnome.org/viewvc/libwnck?rev=1628&view=rev

Log:
2008-06-11  Vincent Untz  <vuntz gnome org>

	* libwnck/screen.c: (arrays_contain_same_windows): return TRUE when
	both list of windows are empty. Fix a bug where when the last window
	disappears, libwnck internals don't get updated and you still have a
	window in the window list, eg.
	See http://code.google.com/p/xmonad/issues/detail?id=195
	Patch by Malebria <malebria riseup net>


Modified:
   trunk/ChangeLog
   trunk/libwnck/screen.c

Modified: trunk/libwnck/screen.c
==============================================================================
--- trunk/libwnck/screen.c	(original)
+++ trunk/libwnck/screen.c	Wed Jun 11 08:46:02 2008
@@ -1481,9 +1481,8 @@
   if (a_len != b_len)
     return FALSE;
 
-  if (a_len == 0 ||
-      b_len == 0)
-    return FALSE; /* one was nonzero */
+  if (a_len == 0)
+    return TRUE; /* both are empty */
   
   a_tmp = g_new (Window, a_len);
   b_tmp = g_new (Window, b_len);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]