summaryrefslogtreecommitdiff
path: root/openbox
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2009-11-21 16:33:35 -0500
committerDana Jansens <danakj@orodu.net>2009-11-21 16:33:35 -0500
commitac6cd2344f2afda023ac08017e0d2b19b0f66df8 (patch)
tree773df83ce78f81c576169e6af8ddc6ed30c8784d /openbox
parent33328583a143677d27eb3d081ce66532c3aaca1c (diff)
Add a comment for commit ec9fbf05df3ac807d60ae6af36236ffc6567bbdc regarding struts with multiple monitors.
Diffstat (limited to 'openbox')
-rw-r--r--openbox/screen.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/openbox/screen.c b/openbox/screen.c
index 5ca0832c..3e27903f 100644
--- a/openbox/screen.c
+++ b/openbox/screen.c
@@ -1469,6 +1469,9 @@ void screen_update_areas(void)
b = MAX(b, s->strut->bottom);
}
+ /* if the monitor is not against the edge of the root window,
+ the struts will include the distance from the root window's edge
+ to the monitor, so add that back into the monitor's work area */
if (l) l += RECT_LEFT (monitor_area[screen_num_monitors])
- RECT_LEFT (monitor_area[i]);
if (t) t += RECT_TOP (monitor_area[screen_num_monitors])