I'm trying to write a script to help me switch between windows. I have tried wmctrl, and xdotool. Both successfully switches between windows. But the window I switch away from starts blinking in the taskbar. Even worse, when a windows has started blinking, it is automatically shown on all desktops.
I've tracked it down to the ewmh hint _NET_WM_STATE_DEMANDS_ATTENTION. The window starts blinking because this hint is set. I have tried to disable it by saving the active window at the beginning of the script and then running:
Code:
wmctrl -i -r $active_window -b remove,demands_attention
at the end.
This works most of the time, but not always. Is there any way to switch windows without ever activating this hint.
Alternatively, is there any way to make kde (im running 4.10.5) ignore this hint. By that I mean don't blink the window in the taskbar, and dont make the window appear on all desktops.
Thanks.