[hackers] [wmii] Fix bug in regexp tags. Thanks Michael Stapelberg. || Kris Maglione

From: <hg_AT_suckless.org>
Date: Wed, 28 Jan 2009 23:32:17 +0000 (UTC)

changeset: 2431:4f35d93209d9
tag: tip
user: Kris Maglione <jg_AT_suckless.org>
date: Wed Jan 28 18:32:13 2009 -0500
files: cmd/wmii/view.c
description:
Fix bug in regexp tags. Thanks Michael Stapelberg.

diff -r 96ca2f9f1423 -r 4f35d93209d9 cmd/wmii/view.c
--- a/cmd/wmii/view.c Wed Jan 28 18:31:08 2009 -0500
+++ b/cmd/wmii/view.c Wed Jan 28 18:32:13 2009 -0500
@@ -125,15 +125,10 @@
         *vp = v->next;
         assert(v != v->next);
 
- /* FIXME: Can do better */
         /* Detach frames held here by regex tags. */
- for(a=v->floating; a; a=an) {
- an = a->next;
- for(f=a->frame; f; f=fn) {
- fn = f->anext;
- apply_tags(f->client, f->client->tags);
- }
- }
+ /* FIXME: Can do better. */
+ foreach_frame(v, s, a, f)
+ apply_tags(f->client, f->client->tags);
 
         foreach_area(v, s, a)
                 area_destroy(a);
Received on Wed Jan 28 2009 - 23:32:17 UTC

This archive was generated by hypermail 2.2.0 : Wed Jan 28 2009 - 23:36:09 UTC