Browse Source

Fix embed windows on linux

gh-pages
falkTX 10 years ago
parent
commit
c5c49f86e8
1 changed files with 6 additions and 3 deletions
  1. +6
    -3
      dgl/src/Window.cpp

+ 6
- 3
dgl/src/Window.cpp View File

@@ -188,9 +188,12 @@ public:
xWindow = impl->win;
assert(xWindow != 0);

pid_t pid = getpid();
Atom _nwp = XInternAtom(xDisplay, "_NET_WM_PID", True);
XChangeProperty(xDisplay, xWindow, _nwp, XA_CARDINAL, 32, PropModeReplace, (const unsigned char*)&pid, 1);
if (! fUsingEmbed)
{
pid_t pid = getpid();
Atom _nwp = XInternAtom(xDisplay, "_NET_WM_PID", True);
XChangeProperty(xDisplay, xWindow, _nwp, XA_CARDINAL, 32, PropModeReplace, (const unsigned char*)&pid, 1);
}
#endif

DBG("Success!\n");


Loading…
Cancel
Save