*** empty log message ***
authorayin <ayin>
Wed, 2 May 2007 23:06:32 +0000 (23:06 +0000)
committerayin <ayin>
Wed, 2 May 2007 23:06:32 +0000 (23:06 +0000)
Changes
README.configure
doc/rxvt.1.pod
src/command.C
src/optinc.h
src/rsinc.h
src/screen.C
src/xdefaults.C

diff --git a/Changes b/Changes
index 1602b24e652732b6793157b02b1ceeac78b6d0b3..43b48e1341ec8fb0cbb1826c4f4d6741b45d648d 100644 (file)
--- a/Changes
+++ b/Changes
@@ -25,6 +25,8 @@ TODO: add bell event (or generic event to act on such controls).
         - do not process focus events caused by grabs
           (patch by Mikachu).
         - better option handling, support more than 30 options (exg).
+        - add urgentOnBell resource to set the urgency hint
+          (patch by Philip Paeps).
 
 8.2  Sat Feb 17 21:35:28 CET 2007
        - fix make depend in src/, reported by exg.
index 5ef39359eebb57a4796d46f7519ef28df2ad6c0c..7b14a77e290399155f152c51f68a56852c711288 100644 (file)
@@ -164,6 +164,7 @@ CONFIGURE OPTIONS
 
           MWM-hints
           EWMH-hints (pid, utf8 names) and protocols (ping)
+          urgency hint
           seperate underline colour (-underlineColor)
           settable border widths and borderless switch (-w, -b, -bl)
           visual depth selection (-depth)
index 4636a5f3097b3b5e720ff310a89ada51245edd40..279c446e2ccac2ed028fb81ffce47de06e4bf3ed 100644 (file)
@@ -753,6 +753,11 @@ set; option B<-n>.
 B<True>: de-iconify (map) on receipt of a bell character. B<False>: no
 de-iconify (map) on receipt of a bell character [default].
 
+=item B<urgentOnBell:> I<boolean>
+
+B<True>: set the urgency hint for the wm on receipt of a bell character.
+B<False>: do not set the urgency hint [default].
+
 =item B<visualBell:> I<boolean>
 
 B<True>: use visual bell on receipt of a bell character; option B<-vb>.
index a874a02c3c112066444868c1dcbd1a7f5d45ebaf..aacfd94686c3dcbaafa18baf748d6c6def6b2317 100644 (file)
@@ -1741,6 +1741,19 @@ rxvt_term::focus_in ()
           pix_colors = pix_colors_focused;
           scr_recolour ();
         }
+#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
     }
 }
index 99dbac25c55ed48dc31ef4f2b77311211eeaf27e..771d413e2d65ea913ac821e5e555aed552de425b 100644 (file)
  def(hold,                 26) // hold window open after exit
  def(override_redirect,    27)
  def(skipBuiltinGlyphs,    28) // do not use internal glyphs
+ def(urgentOnBell,         30)
 #else
  nodef(insecure)
  nodef(borderLess)
  nodef(hold)
  nodef(override_redirect)
  nodef(skipBuiltinGlyphs)
+ nodef(urgentOnBell)
 #endif
 #if ENABLE_STYLES
  def(intensityStyles,      29) // font styles imply intensity
index e1125d0ebe481e6e4ec30104c2a6bb62feeb17e2..089a9a07ec8819b180d38beecb840486a3c50e10 100644 (file)
@@ -77,6 +77,7 @@
   def (lineSpace)
   def (cursorUnderline)
   def (skipBuiltinGlyphs)
+  def (urgentOnBell)
 #endif
 #if CURSOR_BLINK
   def (cursorBlink)
index f392c45143dcb58b620f091eff1c2d62b9b89526..6d2550c2b7559fd03bcfae131ac00e8eae4e8139 100644 (file)
@@ -1892,6 +1892,19 @@ 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)
+        {
+          h->flags |= XUrgencyHint;
+          XSetWMHints(dpy, parent[0], h);
+        }
+    }
+# endif
 
   if (option (Opt_visualBell))
     {
index 017f66cc4c992f0d98b0eaa4e866d95026cb781c..56a6d830fe670cf707aa2348353895f607050602 100644 (file)
@@ -123,6 +123,9 @@ optList[] = {
 #endif
               BOOL (Rs_utmpInhibit, "utmpInhibit", "ut", Opt_utmpInhibit, 0, "utmp inhibit"),
 #ifndef NO_BELL
+# if ENABLE_FRILLS
+              BOOL (Rs_urgentOnBell, "urgentOnBell", NULL, Opt_urgentOnBell, 0, "set the urgency hint for the wm on bell"),
+# endif
               BOOL (Rs_visualBell, "visualBell", "vb", Opt_visualBell, 0, "visual bell"),
 # if ! defined(NO_MAPALERT) && defined(MAPALERT_OPTION)
               BOOL (Rs_mapAlert, "mapAlert", NULL, Opt_mapAlert, 0, NULL),