summaryrefslogtreecommitdiff
path: root/src/screen.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/screen.c')
-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;