title: Move application windows on desktop programmatically in Gnome or KDE
body: <p>I want to reposition a application window on the desktop using a c++ program . 
  How should i go about doing that , i need solution for both situations . </p>
  
  <ol>
  <li><p>When i have the source of the application which want to move .</p></li>
  <li><p>Move windows of other application by Writing an external program.</p></li>
  </ol>