Apache OpenOffice (AOO) Bugzilla – Issue 47904
support for "_NET_WM_PID"
Last modified: 2011-02-25 12:20:08 UTC
it would be nice if the main window of OO have the "_NET_WM_PID" property set. with this property it would be possible to identive the main window more easily (for third party programs which add a system tray or whatever) sorry if this is already set in the 2.x version (was not able to test it with the newest version) code example for linux(unix): Atom net_wm_pid=XInternAtom(display, "_NET_WM_PID", False); int pid=getpid(); XChangeProperty (GDK_DISPLAY(), main_window, net_wm_pid, XA_CARDINAL, 32, PropModeReplace, (guchar *)&pid, 1); ps: the wm_class strings could be changed to something usefull too ;) "soffice" for example
->pl: Something for you?
confirmed; but identifying the main window would be a side effect at best. PID is used by window managers in conjunction with the _NET_WM_PING protocol; some window managers decide that an application that does not respond fast enough should be killed. Which is a really crap idea, but window managers are all about preventing applications from doing their job.
the gtk plugin supports this by virtue of using gtk; the generic plugin (and derivatives like kde and kde4) now supports this, too. fixed in CWS vcl110
verified in CWS vcl110