diff options
author | Danny Baumann <dannybaumann@web.de> | 2007-08-22 14:15:04 +0200 |
---|---|---|
committer | Danny Baumann <dannybaumann@web.de> | 2007-08-22 14:15:04 +0200 |
commit | 97e0f89d1affc5cf6e4b9932efa6d15df324678f (patch) | |
tree | f58c9adc7f98e9ac97f4171c212ee46143c3a0af /selection.c | |
parent | 9297e35d534c5b1c22ec70feaac44625cca463f5 (diff) | |
download | group-97e0f89d1affc5cf6e4b9932efa6d15df324678f.tar.gz group-97e0f89d1affc5cf6e4b9932efa6d15df324678f.tar.bz2 |
Minor cleanup.
Diffstat (limited to 'selection.c')
-rw-r--r-- | selection.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/selection.c b/selection.c index 83a2ead..578124e 100644 --- a/selection.c +++ b/selection.c @@ -181,15 +181,11 @@ groupAddWindowToSelection (CompWindow *w) static void groupSelectWindow (CompWindow *w) { - Bool isGroupable; - GROUP_SCREEN (w->screen); GROUP_WINDOW (w); - isGroupable = matchEval (groupGetWindowMatch (w->screen), w) && - !w->invisible; - - if (!isGroupable) + /* filter out windows we don't want to be groupable */ + if (w->invisible || !matchEval (groupGetWindowMatch (w->screen), w)) return; if (gw->inSelection) |