From 9dce41e194b12145442f26d4434f13ad066d5b26 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Sat, 15 Sep 2007 21:17:30 +0200 Subject: [PATCH] simplify --- awesome.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/awesome.c b/awesome.c index da49d533..3d6e8cfa 100644 --- a/awesome.c +++ b/awesome.c @@ -259,7 +259,6 @@ main(int argc, char *argv[]) fd_set rd; XEvent ev; Display * dpy; - Window root; awesome_config awesomeconf; int shape_event, randr_event_base; @@ -273,11 +272,10 @@ main(int argc, char *argv[]) if(!(dpy = XOpenDisplay(NULL))) eprint("awesome: cannot open display\n"); xfd = ConnectionNumber(dpy); - root = RootWindow(dpy, DefaultScreen(dpy)); XSetErrorHandler(xerrorstart); /* this causes an error if some other window manager is running */ - XSelectInput(dpy, root, SubstructureRedirectMask); + XSelectInput(dpy, RootWindow(dpy, DefaultScreen(dpy)), SubstructureRedirectMask); XSync(dpy, False); XSync(dpy, False);