focus window



Is there a good way to track the focused client window? As opposed to the way
the gnome-pager does it, which is quite a mess. 

The pager filters focus events on the client window, which wouldn't be so bad,
except then you have to worry about what is the client window and what is the
frame, and you also have to track a variety of other events so you can
uninstall the filter, delete the gdk wrapper, and so forth when the window goes
away. It's a lot of code to get very little information.

It appears that KDE simply puts the focused client window in a root window
property, so all you have to do is watch root window property events. Very
simple. Window Maker does this, too, but it looks like other gnome compliant
wm's don't.

b.c.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]