commit a5503f81599ad2014d7844844b6ebb610ba8c12b
parent 42e126009fc8310a7284f47924f09eb3e213d22f
Author: Dylan Araps <dylan.araps@gmail.com>
Date: Wed, 16 Oct 2019 15:50:10 +0300
sowm: avoid global and remove uneeded initial value.
Diffstat:
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/sowm.c b/sowm.c
@@ -54,7 +54,7 @@ static void ws_sel(int i);
static client *list = {0};
static desktop ws_list[10];
-static int ws = 1, sh, sw, s;
+static int ws, sh, sw;
static Display *d;
static Window root, cur;
@@ -542,10 +542,10 @@ int main(void) {
signal(SIGCHLD, SIG_IGN);
XSetErrorHandler(xerror);
- s = DefaultScreen(d);
- root = RootWindow(d, s);
- sw = XDisplayWidth(d, s);
- sh = XDisplayHeight(d, s);
+ int s = DefaultScreen(d);
+ root = RootWindow(d, s);
+ sw = XDisplayWidth(d, s);
+ sh = XDisplayHeight(d, s);
key_grab();