title: x11 - how to set _NET_WM_ALLOWED_ACTIONS
body: <p>I use XCreateSimpleWindow to create x11 window. xprop shows following allowed actions for my window:</p>
  
  <pre><code>_NET_WM_ALLOWED_ACTIONS(ATOM) = _NET_WM_ACTION_MOVE, _NET_WM_ACTION_RESIZE, _NET_WM_ACTION_STICK, _NET_WM_ACTION_MINIMIZE, _NET_WM_ACTION_MAXIMIZE_HORZ, _NET_WM_ACTION_MAXIMIZE_VERT, _NET_WM_ACTION_FULLSCREEN, _NET_WM_ACTION_CLOSE, _NET_WM_ACTION_SHADE, _NET_WM_ACTION_CHANGE_DESKTOP, _NET_WM_ACTION_ABOVE, _NET_WM_ACTION_BELOW
  </code></pre>
  
  <p>What happens if I don't set them explicitly (like above) ? A window has a default list which contains all of them ? How to set them explicitly ? </p>
  
  <p><strong>Edit1</strong>
  Here is example code which sets only one allowed action:</p>
  
  <pre><code>Atom aa = XInternAtom(d, "_NET_WM_ALLOWED_ACTIONS", False);
  Atom close = XInternAtom(d, " _NET_WM_ACTION_CLOSE", False);
  XChangeProperty(d, w, aa, XA_ATOM, 32, PropertyNewValue, (unsigned char*)&amp;close,  1);
  </code></pre>
  
  <p>Window manager still let me move or resize window so maybe I should send some client message ? I want to have a window which allows only for close actions.</p>