From fb760c22188eec44d90e00309f49ddebd16c81f8 Mon Sep 17 00:00:00 2001 From: Danny Baumann Date: Thu, 8 Jan 2009 14:16:39 +0100 Subject: Sanity check work area after applying struts. --- src/screen.c | 7 +++++++ 1 file changed, 7 insertions(+) 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; -- cgit v1.2.3