]> Pileus Git - wmpus/commitdiff
Use stack config variable in sys-win32
authorAndy Spencer <andy753421@gmail.com>
Wed, 26 Oct 2011 05:23:35 +0000 (05:23 +0000)
committerAndy Spencer <andy753421@gmail.com>
Wed, 26 Oct 2011 06:32:29 +0000 (06:32 +0000)
sys-win32.c

index 5d0550ab9cdafa398e1a739b86353dacb1808dbd..c42f8891b9317932fb7fa48a7b0a119cecd5558e 100644 (file)
@@ -31,6 +31,7 @@
 
 /* Configuration */
 static int NO_CAPTURE = 0;
+static int STACK      = 25;
 
 /* Internal structures */
 struct win_sys {
@@ -377,7 +378,7 @@ void sys_show(win_t *win, state_t state)
        printf("sys_show: %s\n", map[state].str);
        ShowWindow(win->sys->hwnd, map[state].cmd);
        if (state == st_shade)
-               SetWindowRgn(win->sys->hwnd, CreateRectRgn(0,0,win->w,25), TRUE);
+               SetWindowRgn(win->sys->hwnd, CreateRectRgn(0,0,win->w,STACK), TRUE);
 }
 
 void sys_watch(win_t *win, Key_t key, mod_t mod)
@@ -406,6 +407,7 @@ win_t *sys_init(void)
 
        /* Load configuration */
        NO_CAPTURE = conf_get_int("main.no-capture", NO_CAPTURE);
+       STACK      = conf_get_int("main.stack",      STACK);
 
        /* Setup window class */
        WNDCLASSEX wc    = {