summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDanny Baumann <dannybaumann@web.de>2009-01-08 14:16:39 +0100
committerDanny Baumann <dannybaumann@web.de>2009-01-10 10:53:29 +0100
commitfb760c22188eec44d90e00309f49ddebd16c81f8 (patch)
tree556f70599c0338d8db723d3fbf447ec049d94cfa /src
parentc15531e451cc976118ded7dd0ce45460f33b0520 (diff)
Sanity check work area after applying struts.
Diffstat (limited to 'src')
-rw-r--r--src/screen.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/screen.c b/src/screen.c
index b157ffe4..5d8fa9c5 100644
--- a/src/screen.c
+++ b/src/screen.c
@@ -3221,6 +3221,13 @@ computeWorkareaForBox (CompScreen *s,
}
}
+ if (XEmptyRegion (region))
+ {
+ compLogMessage ("core", CompLogLevelWarn,
+ "Empty box after applying struts, ignoring struts");
+ region->extents = *pBox;
+ }
+
area->x = region->extents.x1;
area->y = region->extents.y1;
area->width = region->extents.x2 - region->extents.x1;