X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fscreen.c;h=3e27903fba2c95c70bf994e90cfa5c53a2994e7e;hb=ac6cd2344f2afda023ac08017e0d2b19b0f66df8;hp=5ca0832ce29a6fefd4d0a4bc83b876ae5544e80b;hpb=33328583a143677d27eb3d081ce66532c3aaca1c;p=chaz%2Fopenbox 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])