"Anselm R. Garbe" <[EMAIL PROTECTED]> writes: > On Wed, Aug 09, 2006 at 09:28:45PM +0200, Kai Grossjohann wrote: >> Jeremy Maitin-Shepard wrote:
>> > Startup notification would be nice; unfortunately most program currently >> > don't support it. >> For them, one can wait for certain windows to be mapped. > That heuristic is racy. I guess that's why it's called a heuristic. :) In practice, I think this method, particularly if you only use programs that open windows reasonably fast, works quite a bit better than nothing. > There is no way to retrieve process info for windows in X. There is _NET_WM_PID, and _NET_WM_USER_TIME, both of which can be used, with partial effectiveness, for startup notification. In addition, it would be possible, with help from the X server, to get the PID of the process associated with the connection that created the window, provided that the connection is still open and is local; although these are quite a few restrictions, in practice they are satisfied in most cases. -- Jeremy Maitin-Shepard _______________________________________________ [email protected] mailing list http://wmii.de/cgi-bin/mailman/listinfo/wmii
