From: Marco Peereboom Date: Thu, 15 Jan 2009 17:22:05 +0000 (+0000) Subject: Off by one pixel in horizontal stack. Some spacing. X-Git-Url: https://jasonwoof.com/gitweb/?a=commitdiff_plain;h=2d77968e8e9cd81030173ee9e487e9e8da103dcb;p=spectrwm.git Off by one pixel in horizontal stack. Some spacing. --- diff --git a/scrotwm.c b/scrotwm.c index 9ced019..51aa41c 100644 --- a/scrotwm.c +++ b/scrotwm.c @@ -193,8 +193,7 @@ union arg { char **argv; }; - - +/* conf file stuff */ #define SWM_CONF_WS "\n= \t" #define SWM_CONF_FILE "scrotwm.conf" int @@ -387,7 +386,7 @@ quit(union arg *args) void restart(union arg *args) -{ +{ XCloseDisplay(display); execvp(args->argv[0], args->argv); fprintf(stderr, "execvp failed\n"); @@ -577,9 +576,7 @@ stack(void) { DNPRINTF(SWM_D_EVENT, "stack: workspace: %d\n", current_ws); ws[current_ws].restack = 0; - ws[current_ws].cur_layout->l_stack(); - XSync(display, False); } @@ -718,7 +715,8 @@ horizontal_stack(void) { TAILQ_FOREACH (win, &ws[current_ws].winlist, entry) { if (i == 1) { y += h + 2; - h -= 2; + h -= (2 - height % 2); + fprintf(stderr, "h: %d mod: %d\n", h, height % 2); } if (i != 0 && hrw != 0) { /* correct the last window for lost pixels */