Re: [wmii] Re: layout per tag.

From: Jeremy Maitin-Shepard <jeremy_AT_jeremyms.com>
Date: Thu, 10 Aug 2006 03:40:19 -0400

"Anselm R. Garbe" <arg_AT_10kloc.org> 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
Received on Thu Aug 10 2006 - 09:40:59 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 16:12:24 UTC