[Panel-devel] [PATCH] highlight active task in the taskbar

Robert Knight robertknight at gmail.com
Sat Dec 1 15:56:18 CET 2007


Hi,

> i've made this patch to the taskbar that makes the task items aware if they
> are the active window or not, at the moment it's used to highlight the active
> one.

The tasks applet already has does that.  Whenever a task's status
changes, the WindowTaskItem::updateTask() method is called.  If the
task represents the active window its TaskHasFocus flag is enabled.
See the lines of code that around "taskFlags() & TaskHasFocus", which
test to see if the task represents the active window and then adjust
the colour used to draw the item accordingly.

In the old, tacky colourscheme, the active window's task was tinted in
red.  The colour scheme was changed and I cannot remember what the
effect looks like in the new scheme - it might need adjusting.
Unfortunately I have a dodgy checkout or local problem and Plasma
doesn't run at the moment so I cannot test.

Regards,
Robert.

On 01/12/2007, Marco Martin <martkive at gmail.com> wrote:
> Hi all,
> i've made this patch to the taskbar that makes the task items aware if they
> are the active window or not, at the moment it's used to highlight the
> active
> one.
> it uses the same fade animation used by the mouse over and at the moment
> it's
> a little bit hacky, so if the concept is ok it must be cleaned a little
> bit..
> i think this is also needed for another feature i would like to add: task
> switching with the mouse wheel, but at the moment i have absolutely no idea
> how to do it :P
> comments?, does it sound good?
>
> Cheers,
> Marco Martin
>


More information about the Panel-devel mailing list