diff options
-rw-r--r-- | beryl-plugins/src/group/tab.c | 43 |
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) |