This is an automated email generated because a ref change occurred in the
git repository for project wmaker-crm.git.
The branch, master has been updated
via 329f82f6e762b11a4045a029445912e43df40c04 (commit)
from 60a900be28adea31d0a17b792219f3773250ca25 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 329f82f6e762b11a4045a029445912e43df40c04
Author: David Maciejak <
david.m...@gmail.com>
Date: Sun, 22 Mar 2026 16:31:54 -0400
URL: <
https://repo.or.cz/wmaker-crm.git/329f82f6e762b11a>
WPrefs: set the PID of the application to the window
This patch is setting the _NET_WM_PID atom for WPrefs
to report its PID.
Before the patch, the PID reported is unset (0)
$ wmctrl -lp|grep 'Window Maker Preferences'
0x00a000b0 0 0 Linux Window Maker Preferences
After the patch, the PID is set (20110 in the example below)
0x00a000b0 0 20110 Linux Window Maker Preference
---
WPrefs.app/WPrefs.c | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/WPrefs.app/WPrefs.c b/WPrefs.app/WPrefs.c
index cbffa5af1829..a34b9e84a8b0 100644
--- a/WPrefs.app/WPrefs.c
+++ b/WPrefs.app/WPrefs.c
@@ -23,6 +23,7 @@
#include "WPrefs.h"
#include <assert.h>
+#include <X11/Xatom.h>
#ifdef HAVE_STDNORETURN
#include <stdnoreturn.h>
@@ -516,6 +517,9 @@ void Initialize(WMScreen * scr)
char **list;
int i;
char *path;
+ long pid;
+ Atom net_wm_pid;
+ Display *dpy = WMScreenDisplay(scr);
list = RSupportedFileFormats();
for (i = 0; list[i] != NULL; i++) {
@@ -547,6 +551,11 @@ void Initialize(WMScreen * scr)
WMRealizeWidget(WPrefs.win);
+ net_wm_pid = XInternAtom(dpy, "_NET_WM_PID", False);
+ pid = (long)getpid();
+ XChangeProperty(dpy, WMWidgetXID(WPrefs.win), net_wm_pid, XA_CARDINAL,
+ 32, PropModeReplace, (unsigned char *)&pid, 1);
+
WMSetWindowMiniwindowImage(WPrefs.win, WMGetApplicationIconImage(scr));
WMMapWidget(WPrefs.win);
-----------------------------------------------------------------------
Summary of changes:
WPrefs.app/WPrefs.c | 9 +++++++++
1 file changed, 9 insertions(+)
repo.or.cz automatic notification. Contact project admin
crm...@gmail.com
if you want to unsubscribe, or site admin
ad...@repo.or.cz if you receive
no reply.
--
wmaker-crm.git ("The Window Maker window manager")