summaryrefslogtreecommitdiff
path: root/beryl-plugins/src/group
diff options
context:
space:
mode:
authormarex <marex@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2007-02-14 14:42:57 +0000
committermarex <marex@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2007-02-14 14:42:57 +0000
commit918447e34b462a08cc7d1783e434e23620ade099 (patch)
tree92d0eba32cfac2ee82dbdf2a9ad4a3d9b537b612 /beryl-plugins/src/group
parent7866cc262a4bc019d70889b9b5e49ce9ebaa62c3 (diff)
downloadmarex-dev-918447e34b462a08cc7d1783e434e23620ade099.tar.gz
marex-dev-918447e34b462a08cc7d1783e434e23620ade099.tar.bz2
group: Added descriptions to some other functions..
git-svn-id: file:///beryl/trunk@4059 d7aaf104-2d23-0410-ae22-9d23157bf5a3
Diffstat (limited to 'beryl-plugins/src/group')
-rw-r--r--beryl-plugins/src/group/tab.c43
1 files changed, 39 insertions, 4 deletions
diff --git a/beryl-plugins/src/group/tab.c b/beryl-plugins/src/group/tab.c
index 73ee521..76e3cb2 100644
--- a/beryl-plugins/src/group/tab.c
+++ b/beryl-plugins/src/group/tab.c
@@ -485,7 +485,7 @@ void groupHandleTextFade(GroupSelection *group, int msSinceLastPaint)
* groupHandleTabChange
*
* Description:
- * This function is also called from groupPreparePaintScreen to handle
+ * This function is also called from groupHandleChanges to handle
* the tab change. It moved the new topTab on the screen as well as doing
* the initial set for the tab change animation.
*
@@ -557,6 +557,13 @@ groupHandleTabChange(CompScreen *s, GroupSelection *group)
/*
* groupHandleAnimation
*
+ * Description:
+ * This function handles the change animation. It's called
+ * from groupHandleChanges. Don't let the changeState
+ * confuse you, PaintFadeIn equals with the start of the
+ * rotate animation and PaintFadeOut is the end of these
+ * animation.
+ *
*/
static void
groupHandleAnimation(CompScreen *s, GroupSelection *group)
@@ -586,7 +593,7 @@ groupHandleAnimation(CompScreen *s, GroupSelection *group)
if (HAS_TOP_WIN(group))
activateWindow (TOP_TAB(group));
}
-
+
if (group->changeState == PaintFadeOut && group->changeAnimationTime <= 0)
{
int oldChangeAnimationTime = group->changeAnimationTime;
@@ -621,13 +628,16 @@ groupHandleAnimation(CompScreen *s, GroupSelection *group)
groupTabBarTimeout, group);
}
}
-
- return;
}
/*
* groupHandleTab
*
+ * Description:
+ * This functions handes the offscreen moves of the tabs
+ * after the animation has finished. It's called from
+ * groupHandleChanges.
+ *
*/
static void
groupHandleTab(CompScreen *s, GroupSelection *group)
@@ -660,6 +670,12 @@ groupHandleTab(CompScreen *s, GroupSelection *group)
/*
* groupHandleTabbingAnimation
*
+ * Description:
+ * This function handles the end of the tab
+ * animation. Actually its just sets some
+ * states and sync the window positions with X.
+ * It's called from groupHandleChanges.
+ *
*/
static void
groupHandleTabbingAnimation(CompScreen *s, GroupSelection *group)
@@ -686,6 +702,11 @@ groupHandleTabbingAnimation(CompScreen *s, GroupSelection *group)
/*
* groupHandleUntab
*
+ * Description:
+ * This function handles the beginning of the untab
+ * animation. It deletes the tab bar and set's
+ * group->prevTopTab. It's called from groupHandleChanges.
+ *
*/
static void
groupHandleUntab(CompScreen *s, GroupSelection *group)
@@ -711,6 +732,15 @@ groupHandleUntab(CompScreen *s, GroupSelection *group)
/*
* groupHandleUngroup
*
+ * Description:
+ * This function handles the ungroup animation for tabbed groups.
+ * It moved the windows on screen and also it calles groupDeleteGroupWindow
+ * when its a "single ungroup", which means only one window gets removed
+ * from the group. Another task of this function is to check if the group
+ * which is before the given group in the linked list needs to be deleted.
+ * This is needed to avoid problems with the linked list.
+ * It's called from groupHandleChanges.
+ *
*/
static Bool
groupHandleUngroup(CompScreen *s, GroupSelection *group)
@@ -779,6 +809,11 @@ groupHandleUngroup(CompScreen *s, GroupSelection *group)
/*
* groupHandleChanges
*
+ * Description:
+ * This function is called from groupPreparePaintScreen to
+ * go through all groups and apply the other "handle functions"
+ * on them.
+ *
*/
void
groupHandleChanges(CompScreen* s)