summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Untz <vuntz@gnome.org>2008-06-11 08:46:02 +0000
committerVincent Untz <vuntz@src.gnome.org>2008-06-11 08:46:02 +0000
commit1bf8f25fc885da6cc40abbc7eac0efd9cc9a8976 (patch)
tree7d763f461d62eaf941409c338a4bf43dc21771e3
parentec8816b4a1ae754fcb31e40ce8fabe07cf376401 (diff)
downloadlibwnck-1bf8f25fc885da6cc40abbc7eac0efd9cc9a8976.tar.gz
return TRUE when both list of windows are empty. Fix a bug where when the
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> svn path=/trunk/; revision=1628
-rw-r--r--ChangeLog9
-rw-r--r--libwnck/screen.c5
2 files changed, 11 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 990116d..8e9f622 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+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>
+
2008-04-07 Vincent Untz <vuntz@gnome.org>
* configure.in: post-release bump to 2.22.2
diff --git a/libwnck/screen.c b/libwnck/screen.c
index 130c341..c06c143 100644
--- a/libwnck/screen.c
+++ b/libwnck/screen.c
@@ -1481,9 +1481,8 @@ arrays_contain_same_windows (Window *a,
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);