sowm: remove root global

This commit is contained in:
Dylan Araps 2019-10-19 07:49:26 +03:00
parent a4293a63a7
commit b48c9b6add
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E

3
sowm.c
View File

@ -50,7 +50,6 @@ static int ws = 1, sw, sh, wx, wy;
static unsigned int ww, wh;
static Display *d;
static Window root;
static XButtonEvent mouse;
static void (*events[LASTEvent])(XEvent *e) = {
@ -276,7 +275,7 @@ int main(void) {
XSetErrorHandler(xerror);
int s = DefaultScreen(d);
root = RootWindow(d, s);
Window root = RootWindow(d, s);
sw = XDisplayWidth(d, s);
sh = XDisplayHeight(d, s);