Version: (using KDE 4.1.2) Compiler: gcc 4.1.0 OS: Linux Installed from: Ubuntu Packages On setting the _NET_WM_USER_TIME property for a window to 0 (to achieve the result that the window does not steal focus when it is mapped - e.g. via gdk_window_set_focus_on_map(window, FALSE)), the behavior is incorrect with compiz: In addition to the window not stealing focus, the window is also drawn behind existing windows, and so the newly created window is not visible. If such a window has been set to not show up on the taskbar and in the pager, there's no indication that a new window has been created at all. compiz had the same behavior, but has now been fixed (http://bugs.opencompositing.org/show_bug.cgi?id=1117)
That is a feature. Why should this be needed?
This is needed for creation of small notification windows, for instance, such that they do not steal keyboard-focus. The Extended Window Manager Hints spec (http://standards.freedesktop.org/wm-spec/wm-spec-latest.html#id2552314) mentions that: _NET_WM_USER_TIME: The special value of zero on a newly mapped window can be used to request that the window not be initially focused when it is mapped.
activation.cpp:559 if (time == 0) // explicitly asked not to get focus return false;