
Originally Posted by
poelzi
First: the system does not work with the active window pid itself. it has a active processes list which contains the last n processes active. default config is 5, so when you switch between two programs which is very common, these two will both be in the active group.
so, even when x will not set the property on the menu windows, the focus information is not lost.
there are already rules that add ui apps of kde and gnome to a ui group that has more priority then any other running program, so switching desktops etc always feels fast.
xserver itself is placed in the group system.essential which gets lots of cpu shares.