The focus stealing prevention works well only with XRaiseWindow, but not with XFocusWindow
Some apps, like Pidgin and Gajim, as well as some others, may annoyingly pop up a dialog at any time. This makes working in the X session incomfortable, if compared to the text TTY or some mobile windowing systems, where a user may confidently provide lots of keyboard input minutes before it gets processed, as the input focus has almost nowhere to go.
The Compiz focus stealing prevention is supposed to fight that, but it never actually worked well for me, despite its flexibility. Recently I tested its behaviour better with xdotool
, and found out that:
- with
XRaiseWindow
it works as supposed: the event is ignored for windows that match the criteria and they demand an attention instead; - with
XFocusWindow
the raising itself is prevented, but the focus still goes to the requested window. Thus, the previously focused window remains topmost but inactive, while the focused one remains below, and I don't even see what happens there. This is much worse than having the focus stealing prevention disabled at all.
Edited by Bohdan Horbeshko