From 8123d63c5b76909ce70f09614ac0e45760a69d71 Mon Sep 17 00:00:00 2001 From: Bert Date: Fri, 28 Jan 2011 13:34:16 +0100 Subject: Added plenty lots of options --- window.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'window.c') diff --git a/window.c b/window.c index 89340f7..ea86ad3 100644 --- a/window.c +++ b/window.c @@ -54,6 +54,7 @@ void win_open(win_t *win) { win->bgcol = bgcol.pixel; win->pm = 0; + win->fullscreen = 0; win->w = MIN(options->winw, e->scrw); win->h = MIN(options->winh, e->scrh); win->x = (e->scrw - win->w) / 2; @@ -81,6 +82,9 @@ void win_open(win_t *win) { XMapWindow(e->dpy, win->xwin); XFlush(e->dpy); + + if (options->fullscreen) + win_toggle_fullscreen(win); } void win_close(win_t *win) { -- cgit v1.2.3