Package: rxvt-unicode
Version: 9.05-1
Severity: wishlist
Tags: patch

Hi,

When URxvt.urgentOnBell: True is set, urxvt set the urgency hint
whenever a beep (\a) happened in the terminal.
When the focus come back, it removes this hint.

This is a bit annoying, because setting the urgency hint if the window
is focused is totally useless: use do know something is happening since
the window _is_ focused.

The attached patch fixes that.

stolen from:
https://hg.poildetroll.net/hg/gentoo/overlay/diff/1f88a60bf1da/x11-terms/rxvt-unicode/files/rxvt-unicode-no-urgency-if-focused.diff

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.25-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages rxvt-unicode depends on:
ii  base-passwd            3.5.18            Debian base system master password
ii  libafterimage0         2.2.8-2           imaging library designed for After
ii  libc6                  2.7-13            GNU C Library: Shared libraries
ii  libcairo2              1.6.4-6           The Cairo 2D vector graphics libra
ii  libfontconfig1         2.6.0-1           generic font configuration library
ii  libfreetype6           2.3.7-1           FreeType 2 font engine, shared lib
ii  libgcc1                1:4.3.1-8         GCC support library
ii  libglib2.0-0           2.16.5-1          The GLib library of C routines
ii  libgtk2.0-0            2.12.11-3         The GTK+ graphical user interface 
ii  libice6                2:1.0.4-1         X11 Inter-Client Exchange library
ii  libjpeg62              6b-14             The Independent JPEG Group's JPEG 
ii  libperl5.10            5.10.0-11.1       Shared Perl library
ii  libpng12-0             1.2.27-1          PNG library - runtime
ii  librsvg2-2             2.22.2-2          SAX-based renderer library for SVG
ii  libsm6                 2:1.0.3-2         X11 Session Management library
ii  libtiff4               3.8.2-10          Tag Image File Format (TIFF) libra
ii  libx11-6               2:1.1.4-2         X11 client-side library
ii  libxext6               2:1.0.4-1         X11 miscellaneous extension librar
ii  libxft2                2.1.12-3          FreeType-based font drawing librar
ii  libxrender1            1:0.9.4-2         X Rendering Extension client libra
ii  ncurses-base           5.6+20080726-2    basic terminal type definitions
ii  zlib1g                 1:1.2.3.3.dfsg-12 compression library - runtime

rxvt-unicode recommends no packages.

Versions of packages rxvt-unicode suggests:
ii  ttf-bitstream-vera            1.10-7     The Bitstream Vera family of free 

-- no debconf information

Cheers,
-- 
Julien Danjou
// ᐰ <[EMAIL PROTECTED]>   http://julien.danjou.info
// 9A0D 5FD9 EB42 22F6 8974  C95C A462 B51E C2FE E5CD
// Life is life. Lalalalala.
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/x11-terms/rxvt-unicode/files/rxvt-unicode-no-urgency-if-focused.diff	Fri Aug 01 12:10:03 2008 +0200
@@ -0,0 +1,11 @@
+--- src/screen.C.orig	2008-08-01 11:56:18.380063687 +0200
++++ src/screen.C	2008-08-01 11:56:30.046093124 +0200
+@@ -1898,7 +1898,7 @@
+ # endif
+ 
+ # if ENABLE_FRILLS
+-  if (option (Opt_urgentOnBell))
++  if (option (Opt_urgentOnBell) && !focus)
+     {
+       if (XWMHints *h = XGetWMHints(dpy, parent[0]))
+         {




Attachment: signature.asc
Description: Digital signature

Reply via email to