From ca137b15822c3f2a9becf21a004b83b1b229a4f1 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Tue, 11 Sep 2007 18:23:29 +0200 Subject: [PATCH] cosmetic and remove usless default/break --- event.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/event.c b/event.c index 31dd68e0a..057f1ee83 100644 --- a/event.c +++ b/event.c @@ -229,13 +229,18 @@ handle_event_configurenotify(XEvent * e, awesome_config *awesomeconf) { XConfigureEvent *ev = &e->xconfigure; - if(ev->window == DefaultRootWindow(e->xany.display) && (ev->width != DisplayWidth(e->xany.display, DefaultScreen(e->xany.display)) || ev->height != DisplayHeight(e->xany.display, DefaultScreen(e->xany.display)))) + if(ev->window == DefaultRootWindow(e->xany.display) + && (ev->width != DisplayWidth(e->xany.display, DefaultScreen(e->xany.display)) + || ev->height != DisplayHeight(e->xany.display, DefaultScreen(e->xany.display)))) { DisplayWidth(e->xany.display, DefaultScreen(e->xany.display)) = ev->width; DisplayHeight(e->xany.display, DefaultScreen(e->xany.display)) = ev->height; XFreePixmap(e->xany.display, dc.drawable); - dc.drawable = XCreatePixmap(e->xany.display, DefaultRootWindow(e->xany.display), DisplayWidth(e->xany.display, DefaultScreen(e->xany.display)), awesomeconf->statusbar.height, DefaultDepth(e->xany.display, DefaultScreen(e->xany.display))); - XResizeWindow(e->xany.display, awesomeconf->statusbar.window, DisplayWidth(e->xany.display, DefaultScreen(e->xany.display)), awesomeconf->statusbar.height); + dc.drawable = XCreatePixmap(e->xany.display, DefaultRootWindow(e->xany.display), + DisplayWidth(e->xany.display, DefaultScreen(e->xany.display)), + awesomeconf->statusbar.height, DefaultDepth(e->xany.display, DefaultScreen(e->xany.display))); + XResizeWindow(e->xany.display, awesomeconf->statusbar.window, + DisplayWidth(e->xany.display, DefaultScreen(e->xany.display)), awesomeconf->statusbar.height); updatebarpos(e->xany.display, awesomeconf->statusbar); arrange(e->xany.display, awesomeconf); } @@ -334,8 +339,6 @@ handle_event_propertynotify(XEvent * e, awesome_config *awesomeconf) { switch (ev->atom) { - default: - break; case XA_WM_TRANSIENT_FOR: XGetTransientForHint(e->xany.display, c->win, &trans); if(!c->isfloating && (c->isfloating = (getclient(trans) != NULL)))