diff options
author | Vincent Untz <vuntz@gnome.org> | 2008-06-11 08:46:02 +0000 |
---|---|---|
committer | Vincent Untz <vuntz@src.gnome.org> | 2008-06-11 08:46:02 +0000 |
commit | 1bf8f25fc885da6cc40abbc7eac0efd9cc9a8976 (patch) | |
tree | 7d763f461d62eaf941409c338a4bf43dc21771e3 | |
parent | ec8816b4a1ae754fcb31e40ce8fabe07cf376401 (diff) | |
download | libwnck-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-- | ChangeLog | 9 | ||||
-rw-r--r-- | libwnck/screen.c | 5 |
2 files changed, 11 insertions, 3 deletions
@@ -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); |