Browse Source

Force X11 transient windows to be dialog type (no taskbar entry)

tags/1.9.4
falkTX 11 years ago
parent
commit
bdcfa05624
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      source/backend/plugin/CarlaPluginUi.cpp

+ 6
- 0
source/backend/plugin/CarlaPluginUi.cpp View File

@@ -277,7 +277,13 @@ bool CarlaPluginUi::tryTransientWinIdMatch(const ulong pid, const char* const ui
if (lastGoodWindow == 0) if (lastGoodWindow == 0)
return false; return false;


Atom _nwt = XInternAtom(sd.display ,"_NET_WM_WINDOW_TYPE", True);
Atom _nwd = XInternAtom(sd.display, "_NET_WM_WINDOW_TYPE_DIALOG", True);

XUnmapWindow(sd.display, lastGoodWindow);
XChangeProperty(sd.display, lastGoodWindow, _nwt, XA_ATOM, 32, PropModeReplace, (uchar*)&_nwd, 1);
XSetTransientForHint(sd.display, lastGoodWindow, (Window)winId); XSetTransientForHint(sd.display, lastGoodWindow, (Window)winId);
XMapWindow(sd.display, lastGoodWindow);
XFlush(sd.display); XFlush(sd.display);
return true; return true;
#endif #endif


Loading…
Cancel
Save