Is it possible to create a small program that runs in the background/systray/wherever that can capture when windows gain and lose focus, or when a window title changes (for example when changing tabs in a browser)? Are there any API hooks or other ways of doing this in any Linux WM or desktop? asked 02 Aug '10, 07:36 Kurtosis |
Yes, it is possible to write such a program. You should have a look at Chapter 10 of the Xlib Programming Manual for information on events generated when window focus changes. As far as window titles are concerned, the ICCCM and EWMH specs would be a good place to start. answered 17 Aug '10, 05:04 Saleem Abdul... |