From: root Date: Mon, 17 Sep 2007 08:31:54 +0000 (+0000) Subject: clean up some code X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=5ffeb4b7d23d37dc648fbe7f4153028ea8a4e3e6;p=dana%2Furxvt.git clean up some code --- diff --git a/src/command.C b/src/command.C index bdc13f15..22fb4c41 100644 --- a/src/command.C +++ b/src/command.C @@ -1731,13 +1731,10 @@ rxvt_term::focus_in () #if ENABLE_FRILLS if (option (Opt_urgentOnBell)) { - XWMHints *h; - - h = XGetWMHints(dpy, parent[0]); - if (h != NULL) + if (XWMHints *h = XGetWMHints(dpy, parent[0])) { h->flags &= ~XUrgencyHint; - XSetWMHints(dpy, parent[0], h); + XSetWMHints (dpy, parent[0], h); } } #endif diff --git a/src/screen.C b/src/screen.C index 7e5831b6..24a1d9ee 100644 --- a/src/screen.C +++ b/src/screen.C @@ -1887,16 +1887,14 @@ rxvt_term::scr_bell () NOTHROW # endif XMapWindow (dpy, parent[0]); # endif + # if ENABLE_FRILLS if (option (Opt_urgentOnBell)) { - XWMHints *h; - - h = XGetWMHints(dpy, parent[0]); - if (h != NULL) + if (XWMHints *h = XGetWMHints(dpy, parent[0])) { h->flags |= XUrgencyHint; - XSetWMHints(dpy, parent[0], h); + XSetWMHints (dpy, parent[0], h); } } # endif