! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Setting XUrgencyHint makes xfwm4 react even if the window focused/on top.


Description Jan Hruban 2007-10-20 11:46:48 CEST
User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en; rv: Gecko/20070808 Epiphany/2.18 Firefox/
Build Identifier: 

When setting XUrgencyHint flag on client directly through Xlib (not gdk_window_set_urgency_hint), xfwm4 tries to draw attention even if the window is focused/on top (eg. flashes the taskbar)

Reproducible: Always

Steps to Reproduce:
1. for example install rxvt-unicode
2. set urxvt*urgentOnBell: True in ~/.Xdefaults
3. open and focus urxvt and type echo -e '\a'

Actual Results:  
Taskbar flashes even if the urxvt window is focused.

Expected Results:  
Urgent hint shall be taken into account only if the window is not focused.

System: Gentoo Linux
Glib version: 2.12.13
GTK+ version: 2.10.14
Comment 1 Olivier Fourdan editbugs 2007-10-20 11:50:15 CEST
But the taskbar is not managed by the window manager... So if an application sets the urgency hint, and the taskbar catches this up, the window manager is not involved.
Comment 2 Jan Hruban 2007-10-20 12:16:30 CEST
Ok, but I'm pretty sure the xfwm4 is involved. Because normally when urgency hint is set via gdk, the hint comes into action only when the window is not focused, then when window is focused again, the hint is unset.

Urgency hint is a window property, flashing taskbar is just an implied effect, which i think taskbar plugin does when it sees that some window has this urgent hint set.
Comment 3 Olivier Fourdan editbugs 2007-10-20 13:43:47 CEST
The XUrgency hint is a property set to the window that the taskbar monitors and react accordingly. 

Xfwm4 is not involved here, and xfwm4 makes absolutely no difference between gtk apps and plain Xlib apps, all are X windows.
I may be wrong here, of course, but since I wrote both xfwm4 and that part in libxfcegui4...

Look for XUrgencyHint in:

Comment 4 Olivier Fourdan editbugs 2007-10-20 13:49:53 CEST
And the corresponding commit back in 2004:

Comment 5 Jan Hruban 2009-06-14 00:19:19 CEST
This bug can be closed, as it was rxvt-unicode's fault, which was causing this behavior. Sorry for blaming xfwm ;)
Comment 6 Jan Hruban 2009-06-14 09:58:51 CEST
Closing this bug, as it's fixed in rxvt-unicode-9.06 - origin of this bug.
Comment 7 Jan Hruban 2009-06-14 10:07:51 CEST
Sorry, it's not fixed in 9.06, but there's a patch for it, if someone's interested: https://bugs.gentoo.org/show_bug.cgi?id=240165

Bug #3612

Reported by:
Jan Hruban
Reported on: 2007-10-20
Last modified on: 2009-07-14


Olivier Fourdan
CC List:
0 users



Additional information