title: How to set window type to dock in Qt Quick project?
body: <p>I have a Qt Widget with this code:</p>
  
  <pre><code>this-&gt;setAttribute(Qt::WA_X11NetWmWindowTypeDock, true);
  
  unsigned long desstrut[12];
  memset(desstrut,0,sizeof(desstrut));
  desstrut[0] = 0; desstrut[1] = 0;
  desstrut[2] = 32;  desstrut[3] = 0;
  
  desstrut[4] = 0;    desstrut[5] = 0;
  desstrut[6] = 0;   desstrut[7] = 0;
  desstrut[8] = 0;     desstrut[9] = 1366;
  desstrut[10] = 0; desstrut[11] = 0;
  
  const char* atomName1 = "_NET_WM_STRUT_PARTIAL";
  Atom atom1 = XInternAtom(QX11Info::display(), atomName1, false);
  XChangeProperty(QX11Info::display(), (unsigned long) this-&gt;winId(), atom1,
                  XA_CARDINAL, 32, PropModeReplace, (unsigned char *) desstrut, 12 );
  const char* atomName2 = "_NET_WM_STRUT";
  Atom atom2 = XInternAtom(QX11Info::display(), atomName2, false);
  XChangeProperty(QX11Info::display(), (unsigned long) this-&gt;winId(), atom2,
                  XA_CARDINAL, 32, PropModeReplace, (unsigned char*) desstrut, 4);
  </code></pre>
  
  <p>and I tried to write the same think in Qt Quick project:</p>
  
  <pre><code>Display *display = QX11Info::display();
  QObject* rootObject = engine.rootObjects().first();
  QWindow *window = qobject_cast&lt;QWindow *&gt;(rootObject);
  unsigned long windowId = window-&gt;winId();
  
  Atom _NET_WM_WINDOW_TYPE = XInternAtom(display, "_NET_WM_WINDOW_TYPE", false);
  long _NET_WM_WINDOW_TYPE_DOCK = XInternAtom(display, "_NET_WM_WINDOW_TYPE_DOCK", false);
  XChangeProperty(display, windowId, _NET_WM_WINDOW_TYPE,
                  XA_ATOM, 32, PropModeReplace, (unsigned char *) &amp;_NET_WM_WINDOW_TYPE_DOCK, 1);
  
  unsigned long strutPartial[12] = {
      0, 0, 32, 0,
      0, 0, 0, 0,
      0, 1366, 0, 0
  };
  Atom _NET_WM_STRUT_PARTIAL = XInternAtom(display, "_NET_WM_STRUT_PARTIAL", false);
  XChangeProperty(display, windowId, _NET_WM_STRUT_PARTIAL,
                  XA_CARDINAL, 32, PropModeReplace, (unsigned char *) strutPartial, 12 );
  Atom _NET_WM_STRUT = XInternAtom(display, "_NET_WM_STRUT", false);
  XChangeProperty(display, windowId, _NET_WM_STRUT,
                  XA_CARDINAL, 32, PropModeReplace, (unsigned char*) strutPartial, 4);
  </code></pre>
  
  <p>but it does not work: my window does not become a panel.
  Can anybody help me with this?</p>