! 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 !
Show windows with prevented focus as urgent in task list
Status:
RESOLVED: FIXED
Severity:
enhancement
Product:
Xfce4-panel

Comments

Description Stefan Stuhr 2005-12-22 08:44:41 CET
I have prevent_focus_stealing=true in my xfwm4rc. When using gnome-panel and
gnome-panel's taskbar applet, and Xfwm4 prevent a window from stealing focus, it
show the button for that window in the same way as if the window had the urgent
hint, until the window gets focus.

It would be very useful if xfce4-panel's task list plugin could do the same, as
it is now it can be hard to notice that a window has tried to get focus.
It should of course also work for grouped tasks (see bug #537), as it does in
gnome-panel.

Reproducible: Always
Steps to Reproduce:
1. Configure Xfwm4 to prevent focus stealing.
2. Trigger the focus stealing prevention, e.g. by having Firefox in focus and
running a Terminal window by clicking on a launcher in a panel.
Actual Results:  
The window with prevented focus doesn't show in the task list in the same way as
urgent windows.

Expected Results:  
The window should show in the task list in the same way as urgent windows.
Gnome-panel does it, so it's possible.

I'm running Xfce SVN under Ubuntu 5.10 with GTK 2.8.6.

I'm not sure if this is a bug in xfce4-panel's task list plugin or in libxfcegui4.
Comment 1 Jasper Huijsmans editbugs 2005-12-22 08:57:37 CET
Olivier, could you comment on this?
Comment 2 Stefan Stuhr 2005-12-22 14:51:34 CET
> I'm not sure if this is a bug in xfce4-panel's task list plugin or in libxfcegui4.

s/bug in/feature wish for/
Comment 3 Olivier Fourdan editbugs 2005-12-22 20:01:33 CET
xfwm4 does it's part of the job by settings the ET_WM_STATE_DEMANDS_ATTENTION
property.

It's just not implemented in the tasklist widget.
Comment 4 Olivier Fourdan editbugs 2005-12-22 20:08:52 CET
It's "NET_WM_STATE_DEMANDS_ATTENTION" (missing the leading "N"). And I just
checked with GNOME panel to validate the xfwm4 implementation and it seems all
fine (ie it works).

I tried to change the component to libxfcegui4 (which is where the tasklist is
implemented), but I can't find it in the component list...
Comment 5 Jasper Huijsmans editbugs 2005-12-22 20:09:49 CET
(In reply to comment #4)
> It's "NET_WM_STATE_DEMANDS_ATTENTION" (missing the leading "N"). And I just
> checked with GNOME panel to validate the xfwm4 implementation and it seems all
> fine (ie it works).
> 
> I tried to change the component to libxfcegui4 (which is where the tasklist is
> implemented), but I can't find it in the component list...

Aha, a new property. I didn't know about that. So, 'someone' could make a patch
to make the tasklist react to this hint in the same ways as it would when the
urgent hint is set. Thanks for explaining.
Comment 6 Jasper Huijsmans editbugs 2006-04-29 18:43:33 CEST
I think this should work when you update to libxfcegui4 from SVN revision 21363. Please reopen if it doesn't work.
Comment 7 Stefan Stuhr 2006-04-29 19:26:08 CEST
Thank you, Jasper. This is very cool, and makes the focus stealing prevention of xfwm4 way more usable.

There is, however, one thing. When a window in a grouped task is prevented focus, the text in the taskbar button gets bold, but the button doesn't start blinking. I would be extra happy if grouped task buttons also would blink.

Also, while you are at it, you seem (to me) to be very close to be able to also fix bug #537 - but I could be wrong.

Bug #1287

Reported by:
Stefan Stuhr
Reported on: 2005-12-22
Last modified on: 2010-11-20

People

Assignee:
Nick Schermer
CC List:
2 users

Version

Attachments

Additional information