mirror of
https://github.com/gryf/wmaker.git
synced 2026-03-25 22:33:31 +01:00
Compare commits
1 Commits
60a900be28
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
329f82f6e7 |
@@ -23,6 +23,7 @@
|
|||||||
|
|
||||||
#include "WPrefs.h"
|
#include "WPrefs.h"
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
#include <X11/Xatom.h>
|
||||||
|
|
||||||
#ifdef HAVE_STDNORETURN
|
#ifdef HAVE_STDNORETURN
|
||||||
#include <stdnoreturn.h>
|
#include <stdnoreturn.h>
|
||||||
@@ -516,6 +517,9 @@ void Initialize(WMScreen * scr)
|
|||||||
char **list;
|
char **list;
|
||||||
int i;
|
int i;
|
||||||
char *path;
|
char *path;
|
||||||
|
long pid;
|
||||||
|
Atom net_wm_pid;
|
||||||
|
Display *dpy = WMScreenDisplay(scr);
|
||||||
|
|
||||||
list = RSupportedFileFormats();
|
list = RSupportedFileFormats();
|
||||||
for (i = 0; list[i] != NULL; i++) {
|
for (i = 0; list[i] != NULL; i++) {
|
||||||
@@ -547,6 +551,11 @@ void Initialize(WMScreen * scr)
|
|||||||
|
|
||||||
WMRealizeWidget(WPrefs.win);
|
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));
|
WMSetWindowMiniwindowImage(WPrefs.win, WMGetApplicationIconImage(scr));
|
||||||
|
|
||||||
WMMapWidget(WPrefs.win);
|
WMMapWidget(WPrefs.win);
|
||||||
|
|||||||
Reference in New Issue
Block a user