summaryrefslogtreecommitdiff
path: root/selection.c
diff options
context:
space:
mode:
authorDanny Baumann <dannybaumann@web.de>2007-10-04 07:28:47 +0200
committerDanny Baumann <dannybaumann@web.de>2007-10-04 07:28:47 +0200
commitbc445614461feae49bd368571a295d2b74a6f3a2 (patch)
treea689d291bef579bdd0d0d5c521b481592a9da274 /selection.c
parent4bc9aff2182c378632e5d52967cbb60502201365 (diff)
downloadgroup-bc445614461feae49bd368571a295d2b74a6f3a2.tar.gz
group-bc445614461feae49bd368571a295d2b74a6f3a2.tar.bz2
Use central function to determine if a window should be groupable or not.
Filter out desktop and override_redirect windows.
Diffstat (limited to 'selection.c')
-rw-r--r--selection.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/selection.c b/selection.c
index 1b8fc6e..b010f08 100644
--- a/selection.c
+++ b/selection.c
@@ -101,8 +101,7 @@ groupFindWindowsInRegion (CompScreen *s,
for (w = s->reverseWindows; w; w = w->prev)
{
- if (matchEval (groupGetWindowMatch (s), w) &&
- !w->invisible &&
+ if (groupIsGroupWindow (w) &&
groupWindowInRegion (w, reg, precision))
{
GROUP_WINDOW (w);
@@ -185,7 +184,7 @@ groupSelectWindow (CompWindow *w)
GROUP_WINDOW (w);
/* filter out windows we don't want to be groupable */
- if (w->invisible || !matchEval (groupGetWindowMatch (w->screen), w))
+ if (!groupIsGroupWindow (w))
return;
if (gw->inSelection)