Skip to content
Snippets Groups Projects
Commit 76641ca7 authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Set _NET_WM_PID

Seems like a good idea, should allow WMs to kill hung processes and
stuff like that.
parent 99b46a01
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #4388 passed
...@@ -593,6 +593,13 @@ static int init_window() ...@@ -593,6 +593,13 @@ static int init_window()
x11.XSetWMProperties(dpy, win, NULL, NULL, 0, 0, NULL, wmhints, classhints); x11.XSetWMProperties(dpy, win, NULL, NULL, 0, 0, NULL, wmhints, classhints);
x11.XFree(wmhints); x11.XFree(wmhints);
} }
Atom pid_atom = x11.XInternAtom(dpy, "_NET_WM_PID", False);
if (pid_atom != None) {
unsigned long pid_l = getpid();
x11.XChangeProperty(dpy, win, pid_atom, XA_CARDINAL, 32, PropModeReplace, (unsigned char *)&pid_l, 1);
}
im = x11.XOpenIM(dpy, NULL, "CIOLIB", "CIOLIB"); im = x11.XOpenIM(dpy, NULL, "CIOLIB", "CIOLIB");
if (im != NULL) { if (im != NULL) {
ic = x11.XCreateIC(im, XNClientWindow, win, XNInputStyle, XIMPreeditNothing | XIMStatusNothing, NULL); ic = x11.XCreateIC(im, XNClientWindow, win, XNInputStyle, XIMPreeditNothing | XIMStatusNothing, NULL);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment