title: How to manage my application window with python-xlib?
body: <p>I would like to find a linux-wide (insofar as it uses X11) way to control the window geometry of my application, which I program using Python. All my researches point to using <a href="http://sourceforge.net/projects/python-xlib/" rel="noreferrer">python-xlib</a>, which happens to be very poorly documented.</p>
  
  <p>What I'd like to achieve is:</p>
  
  <ul>
  <li>define position of window on screen</li>
  <li>define minimum and maximum size</li>
  <li>enable / disable window resizing</li>
  <li>reserve screen-space for window</li>
  <li>keep window above/below</li>
  <li>skip or not task-bar (aka window list)</li>
  <li>set window decorated / undecorated</li>
  <li>set window flags (normal, pop-up, dialogue, splash, dock, ignored)</li>
  </ul>
  
  <p><em>NB: I don't want to create the with Xlib, instead I want to tell X what to do with the window i created with some GUI library (PyQt for instance).</em></p>
  
  <p>How can I go about doing this? I realise this question is quite a big one: do you have hints at least as to how I can get hold of my window? Where in the module can I find my answers?</p>
  
  <p><strong>Edit:</strong> n.m.'s answer offered great resources, and there is also <a href="https://unix.stackexchange.com/questions/5999/setting-the-window-dimensions-of-a-running-application">another Q&amp;A on Unix StackExchange</a> that provides a great example on how to get control on an application window displayed by X.</p>