Putting PID into window title?

I sometimes spawn multiple instances of app that puts important information in the titlebar of its main window, but doesn't put the information in the titlebars of its child windows. When I run two instances of this app on the same desktop, it's difficult to tell which child windows are associated with which main window. If the PID associated with each window were in its titlebar, I could match the child windows and main windows up easily. I have checked that the app in question correctly sets the _NET_WM_PID property, but I don't see anything in Decoration or SimpleDecoration for letting me add my own text. Is there a way to do this? Thanks, -Joe G.

-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 4/27/11 22:11 , Joseph Garvin wrote:
child windows and main windows up easily. I have checked that the app in question correctly sets the _NET_WM_PID property, but I don't see anything in Decoration or SimpleDecoration for letting me add my own text. Is there a way to do this?
Proper behavior per EWMH is for the window manager to set _NET_WM_VISIBLE_NAME, probably in the manageHook but possibly in handleEventHook, and then to use that when it exists instead of _NET_WM_NAME or WM_NAME. That said, Decoration is certainly able to do it, although it doesn't come with a "canned" configuration that does so. You would override the "decorate" method. With SimpleDecoration I'd (after using a handleEventHook to set _NET_WM_VISIBLE_NAME as above) change it to use a modified getName (which it currently gets from XMonad.Util.NamedWindows) that knows about _NET_WM_VISIBLE_NAME. - -- brandon s. allbery [linux,solaris,freebsd,perl] allbery.b@gmail.com system administrator [openafs,heimdal,too many hats] kf8nh -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk25ZsgACgkQIn7hlCsL25XtcgCeMyAmxPRUntCwh25nGVaECPQr 0VMAoIkaQQLiuVnKXuFme/+6YU9xs4AG =3iVK -----END PGP SIGNATURE-----
participants (2)
-
Brandon S Allbery KF8NH
-
Joseph Garvin