libwnck r1629 - in branches/gnome-2-22: . libwnck
- From: vuntz svn gnome org
- To: svn-commits-list gnome org
- Subject: libwnck r1629 - in branches/gnome-2-22: . libwnck
- Date: Wed, 11 Jun 2008 08:46:46 +0000 (UTC)
Author: vuntz
Date: Wed Jun 11 08:46:46 2008
New Revision: 1629
URL: http://svn.gnome.org/viewvc/libwnck?rev=1629&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:
branches/gnome-2-22/ChangeLog
branches/gnome-2-22/libwnck/screen.c
Modified: branches/gnome-2-22/libwnck/screen.c
==============================================================================
--- branches/gnome-2-22/libwnck/screen.c (original)
+++ branches/gnome-2-22/libwnck/screen.c Wed Jun 11 08:46:46 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]