Disable urgency hint when focusing window out

Bernhard Walle bernhard.walle at gmx.de
Mon Sep 17 09:09:28 CEST 2007


Hi,

I have following problem: when I enable urgentOnBell and the window
beeps while the window is focused, the urgency bell is still enabled
when I focus the window out which doesn't make sense for me.

This patch fixes the problem for me. It would be nice if that issue
could also be fixed mainline.


Thanks,
   Bernhard


---
 src/command.C |   13 +++++++++++++
 1 file changed, 13 insertions(+)

--- a/src/command.C
+++ b/src/command.C
@@ -1803,6 +1803,19 @@ rxvt_term::focus_out ()
         }
 #endif
     }
+#if ENABLE_FRILLS
+  if (option (Opt_urgentOnBell))
+    {
+      XWMHints *h;
+
+      h = XGetWMHints(dpy, parent[0]);
+      if (h != NULL)
+	{
+	  h->flags &= ~XUrgencyHint;
+	  XSetWMHints(dpy, parent[0], h);
+	}
+    }
+#endif
 }
 
 void




More information about the rxvt-unicode mailing list