summaryrefslogtreecommitdiff
path: root/beryl-plugins/src/group
diff options
context:
space:
mode:
authormaniac <maniac@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2007-01-18 16:24:09 +0000
committermaniac <maniac@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2007-01-18 16:24:09 +0000
commit4f1dfda90140e83041d2d0398b186c0184f559f8 (patch)
tree60a88f6d6c795a09322b0a59aa1dd67c4bf9fa4c /beryl-plugins/src/group
parent079e4e016b3aeaade198d2ae1662758a09493ec4 (diff)
downloadmarex-dev-4f1dfda90140e83041d2d0398b186c0184f559f8.tar.gz
marex-dev-4f1dfda90140e83041d2d0398b186c0184f559f8.tar.bz2
group plugin: correctly set window state to normal on first damage
git-svn-id: file:///beryl/trunk@2845 d7aaf104-2d23-0410-ae22-9d23157bf5a3
Diffstat (limited to 'beryl-plugins/src/group')
-rw-r--r--beryl-plugins/src/group/group.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/beryl-plugins/src/group/group.c b/beryl-plugins/src/group/group.c
index f100ac8..e5b41b9 100644
--- a/beryl-plugins/src/group/group.c
+++ b/beryl-plugins/src/group/group.c
@@ -1203,14 +1203,17 @@ Bool groupDamageWindowRect(CompWindow * w, Bool initial, BoxPtr rect)
status = (*w->screen->damageWindowRect) (w,initial,rect);
WRAP(gs,w->screen,damageWindowRect,groupDamageWindowRect);
- if (initial && gs->opt[GROUP_SCREEN_OPTION_AUTOTAB].value.b && (w->type & gs->wMask))
- {
+ if (initial) {
GROUP_WINDOW(w);
- if (!gw->group && (gw->windowState == WindowNormal)) {
- groupAddWindowToGroup(w->screen->display, w, NULL);
- groupTabGroup(w);
+ if (gs->opt[GROUP_SCREEN_OPTION_AUTOTAB].value.b && (w->type & gs->wMask)) {
+ if (!gw->group && (gw->windowState == WindowNormal)) {
+ groupAddWindowToGroup(w->screen->display, w, NULL);
+ groupTabGroup(w);
+ }
}
+
+ gw->windowState = WindowNormal;
}
return status;