-- Leo's gemini proxy
-- Connecting to git.thebackupbox.net:1965...
-- Connected
-- Sending request
-- Meta line: 20 text/gemini
repo: rxvt-unicode-sixel action: commit revision: path_from: revision_from: 1f3aff40addbd646ff11b5da4d640d8f9a1fd2c4: path_to: revision_to:
commit 1f3aff40addbd646ff11b5da4d640d8f9a1fd2c4 Author: Marc Lehmann <schmorp@schmorp.de> Date: Mon Sep 17 08:31:54 2007 +0000 clean up some code diff --git a/src/command.C b/src/command.C
--- 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
--- 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
-----END OF PAGE-----
-- Response ended
-- Page fetched on Sun Jun 2 11:24:38 2024