summaryrefslogtreecommitdiff
path: root/src/screen.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/screen.cpp')
-rw-r--r--src/screen.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/screen.cpp b/src/screen.cpp
index fff1c38..4e492bd 100644
--- a/src/screen.cpp
+++ b/src/screen.cpp
@@ -3339,6 +3339,13 @@ PrivateScreen::computeWorkareaForBox (BoxPtr pBox,
}
}
+ 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;