Issue 47904 - support for "_NET_WM_PID"
Summary: support for "_NET_WM_PID"
Status: CLOSED FIXED
Alias: None
Product: ui
Classification: Code
Component: code (show other issues)
Version: OOo 1.1
Hardware: PC Linux, all
: P3 Trivial (vote)
Target Milestone: OOo 3.3
Assignee: philipp.lohmann
QA Contact: issues@ui
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-21 21:04 UTC by pulp
Modified: 2011-02-25 12:20 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description pulp 2005-04-21 21:04:53 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
Comment 1 Oliver Specht 2005-05-23 13:10:59 UTC
->pl: Something for you?
Comment 2 philipp.lohmann 2005-05-27 09:16:43 UTC
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.
Comment 3 philipp.lohmann 2010-02-26 17:00:11 UTC
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
Comment 4 philipp.lohmann 2010-03-26 15:27:23 UTC
verified in CWS vcl110