summaryrefslogtreecommitdiff
path: root/beryl-plugins/src/group
diff options
context:
space:
mode:
authormaniac <maniac@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2007-01-18 15:55:31 +0000
committermaniac <maniac@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2007-01-18 15:55:31 +0000
commit33f8858a4e9a23502dd952a7fbe8c695dc18b174 (patch)
tree9a69d45742f4548e8f3c84f592bc932a18fbb880 /beryl-plugins/src/group
parent1eb2d8789fe871d4bb6ac4ed93ef49890e24ad47 (diff)
downloadmarex-dev-33f8858a4e9a23502dd952a7fbe8c695dc18b174.tar.gz
marex-dev-33f8858a4e9a23502dd952a7fbe8c695dc18b174.tar.bz2
group plugin: only autotab windows which had no group before
git-svn-id: file:///beryl/trunk@2843 d7aaf104-2d23-0410-ae22-9d23157bf5a3
Diffstat (limited to 'beryl-plugins/src/group')
-rw-r--r--beryl-plugins/src/group/group.c8
-rw-r--r--beryl-plugins/src/group/tab.c2
2 files changed, 7 insertions, 3 deletions
diff --git a/beryl-plugins/src/group/group.c b/beryl-plugins/src/group/group.c
index ec19739..11f225b 100644
--- a/beryl-plugins/src/group/group.c
+++ b/beryl-plugins/src/group/group.c
@@ -1198,8 +1198,12 @@ Bool groupDamageWindowRect(CompWindow * w, Bool initial, BoxPtr rect)
if (initial && gs->opt[GROUP_SCREEN_OPTION_AUTOTAB].value.b && (w->type & gs->wMask))
{
- groupAddWindowToGroup(w->screen->display, w, NULL);
- groupTabGroup(w);
+ GROUP_WINDOW(w);
+
+ if (!gw->group) {
+ groupAddWindowToGroup(w->screen->display, w, NULL);
+ groupTabGroup(w);
+ }
}
return status;
diff --git a/beryl-plugins/src/group/tab.c b/beryl-plugins/src/group/tab.c
index 87bd107..9d74178 100644
--- a/beryl-plugins/src/group/tab.c
+++ b/beryl-plugins/src/group/tab.c
@@ -872,7 +872,7 @@ void groupTabGroup(CompWindow *main)
GROUP_WINDOW(main);
GroupSelection *group = gw->group;
- if(!group)
+ if(!group || group->tabBar)
return;
groupInitTabBar(group, main);