Skip to content
Snippets Groups Projects
Commit 9d0cc3fb authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

Merge branch 'Hadron-master'

parents fd898918 8f8c58ef
No related branches found
No related tags found
No related merge requests found
...@@ -149,9 +149,11 @@ void winwidget_create_window(winwidget ret, int w, int h) ...@@ -149,9 +149,11 @@ void winwidget_create_window(winwidget ret, int w, int h)
XClassHint *xch; XClassHint *xch;
MWMHints mwmhints; MWMHints mwmhints;
Atom prop = None; Atom prop = None;
pid_t pid;
int x = 0; int x = 0;
int y = 0; int y = 0;
char *tmpname; char *tmpname;
char hostname[HOST_NAME_MAX];
D(("winwidget_create_window %dx%d\n", w, h)); D(("winwidget_create_window %dx%d\n", w, h));
...@@ -271,6 +273,18 @@ void winwidget_create_window(winwidget ret, int w, int h) ...@@ -271,6 +273,18 @@ void winwidget_create_window(winwidget ret, int w, int h)
PropModeReplace, (unsigned char *) &prop_fs, 1); PropModeReplace, (unsigned char *) &prop_fs, 1);
} }
pid = getpid();
prop = XInternAtom(disp, "_NET_WM_PID", False);
XChangeProperty(disp, ret->win, prop, XA_CARDINAL, sizeof(pid_t) * 8,
PropModeReplace, (const unsigned char *)&pid, 1);
if (gethostname(hostname, HOST_NAME_MAX) == 0) {
hostname[HOST_NAME_MAX-1] = '\0';
prop = XInternAtom(disp, "WM_CLIENT_MACHINE", False);
XChangeProperty(disp, ret->win, prop, XA_STRING, sizeof(char) * 8,
PropModeReplace, (unsigned char *)hostname, strlen(hostname));
}
XSetWMProtocols(disp, ret->win, &wmDeleteWindow, 1); XSetWMProtocols(disp, ret->win, &wmDeleteWindow, 1);
winwidget_update_title(ret); winwidget_update_title(ret);
xch = XAllocClassHint(); xch = XAllocClassHint();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment