From 19703e33d060f34a5be50db692e590e9c45d44c1 Mon Sep 17 00:00:00 2001 From: seanpringle Date: Sat, 1 Sep 2012 22:50:50 +1000 Subject: [PATCH] struts bug --- xoat.c | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/xoat.c b/xoat.c index 063c446..cc1080e 100644 --- a/xoat.c +++ b/xoat.c @@ -985,21 +985,17 @@ int main(int argc, char *argv[]) monitors[i].w = info[i].width; monitors[i].h = info[i].height - struts[TOP] - struts[BOTTOM]; - // left struts affect first monitor - if (!i) - { - monitors[i].x += struts[LEFT]; - monitors[i].w -= struts[LEFT]; - } - // right struts affect last monitor - if (i == nmonitors-1) - { - monitors[i].w -= struts[RIGHT]; - } } XFree(info); } } + + // left struts affect first monitor + monitors[0].x += struts[LEFT]; + monitors[0].w -= struts[LEFT]; + // right struts affect last monitor + monitors[nmonitors-1].w -= struts[RIGHT]; + // setup existing managable windows windows_visible(&wins); inplay.depth = 0;