title: Getting pid and details for topmost window
body: <p>Does anyone know how to get the PID of the top active window and then how to get the properties of the window using the PID? I mean properties like process name, program name, etc.</p>
  
  <p>I'm using Qt under Linux (Ubuntu 9.10).</p>