-- 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:

git.thebackupbox.net

rxvt-unicode-sixel

git://git.thebackupbox.net/rxvt-unicode-sixel

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

index bdc13f157bcf339ae16778237f640a443578770b..

index ..22fb4c41ab82c62553bfdb15dbdf0be6393a30e5 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 7e5831b66774842b0cf1d4e7ed220d2739b65246..

index ..24a1d9eea3acf956e1b5d2f60afd44a4d115d29f 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

-----END OF PAGE-----

-- Response ended

-- Page fetched on Sun Jun 2 11:24:38 2024