diff --git a/LFSToolKit/LFSToolKit/lfstk/LFSTKToolWindow.cpp b/LFSToolKit/LFSToolKit/lfstk/LFSTKToolWindow.cpp index 307e298..e7b3f39 100644 --- a/LFSToolKit/LFSToolKit/lfstk/LFSTKToolWindow.cpp +++ b/LFSToolKit/LFSToolKit/lfstk/LFSTKToolWindow.cpp @@ -85,6 +85,8 @@ void LFSTK_toolWindowClass::windowClassInitCommon(windowInitStruct *wi) classHint.res_name=this->windowName; classHint.res_class=(char*)"LFSToolKit"; XSetClassHint(this->app->display,this->window,&classHint); + unsigned long pid=getpid(); + this->LFSTK_setXProperty(XInternAtom(this->app->display,"_NET_WM_PID",False),XA_CARDINAL,32,(void *)&pid,1); this->gc=XCreateGC(this->app->display,this->window,0,NULL); this->LFSTK_setFontString((char*)DEFAULTFONT); diff --git a/LFSToolKit/LFSToolKit/lfstk/LFSTKWindow.cpp b/LFSToolKit/LFSToolKit/lfstk/LFSTKWindow.cpp index 2b34bf1..aceb68d 100644 --- a/LFSToolKit/LFSToolKit/lfstk/LFSTKWindow.cpp +++ b/LFSToolKit/LFSToolKit/lfstk/LFSTKWindow.cpp @@ -756,6 +756,8 @@ void LFSTK_windowClass::windowClassInitCommon(windowInitStruct *wi) classHint.res_name=this->windowName; classHint.res_class=(char*)"LFSToolKit"; XSetClassHint(this->app->display,this->window,&classHint); + unsigned long pid=getpid(); + this->LFSTK_setXProperty(XInternAtom(this->app->display,"_NET_WM_PID",False),XA_CARDINAL,32,(void *)&pid,1); this->gc=XCreateGC(this->app->display,this->window,0,NULL); this->LFSTK_setFontString((char*)DEFAULTFONT); @@ -845,6 +847,8 @@ LFSTK_windowClass::LFSTK_windowClass(windowInitStruct *wi,LFSTK_applicationClass classHint.res_name=this->windowName; classHint.res_class=(char*)"LFSToolKit"; XSetClassHint(this->app->display,this->window,&classHint); + unsigned long pid=getpid(); + this->LFSTK_setXProperty(XInternAtom(this->app->display,"_NET_WM_PID",False),XA_CARDINAL,32,(void *)&pid,1); this->gc=XCreateGC(this->app->display,this->window,0,NULL); this->LFSTK_setFontString((char*)DEFAULTFONT);