summaryrefslogtreecommitdiff
path: root/src/screen.cpp
diff options
context:
space:
mode:
authorDanny Baumann <dannybaumann@web.de>2009-02-26 00:17:04 +0100
committerDanny Baumann <dannybaumann@web.de>2009-02-26 00:17:04 +0100
commitd5ee8ddf37083ce62f4e490d7aabed2699ab8d99 (patch)
treeba709e93245e88e2f3b1d0e3f83a6ddd10c46dac /src/screen.cpp
parent51aa457b90948dd1900b8d10f10267078d452dfc (diff)
downloadunity-window-decorator-d5ee8ddf37083ce62f4e490d7aabed2699ab8d99.tar.gz
unity-window-decorator-d5ee8ddf37083ce62f4e490d7aabed2699ab8d99.tar.bz2
Improve strut handling.
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;