summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanny Baumann <dannybaumann@web.de>2008-03-17 16:24:59 +0100
committerDanny Baumann <dannybaumann@web.de>2008-03-17 16:24:59 +0100
commitca4a17e2ec740021cc3b1f099eb7e3b7eb137279 (patch)
tree1fa2dc2a4907e98d34268ea07c865565d782aa4c
parentb76b835454039d646f32f34a76da3e2598214ee6 (diff)
downloadgroup-ca4a17e2ec740021cc3b1f099eb7e3b7eb137279.tar.gz
group-ca4a17e2ec740021cc3b1f099eb7e3b7eb137279.tar.bz2
Don't show tar bar if the screen is grabbed.
-rw-r--r--tab.c15
1 files changed, 10 insertions, 5 deletions
diff --git a/tab.c b/tab.c
index 6e4e811..fe43a1b 100644
--- a/tab.c
+++ b/tab.c
@@ -930,16 +930,21 @@ void
groupUpdateTabBars (CompScreen *s,
Window enteredWin)
{
- CompWindow *w;
+ CompWindow *w = NULL;
GroupSelection *hoveredGroup = NULL;
GROUP_SCREEN (s);
- /* first check if the entered window is a frame */
- for (w = s->windows; w; w = w->next)
+ /* do nothing if the screen is grabbed, as the frame might be drawn
+ transformed */
+ if (!otherScreenGrabExist (s, "group", "group-drag", 0))
{
- if (w->frame == enteredWin)
- break;
+ /* first check if the entered window is a frame */
+ for (w = s->windows; w; w = w->next)
+ {
+ if (w->frame == enteredWin)
+ break;
+ }
}
if (w)