title: XDOTOOL won't pass clicks to a particular window
body: <p>Just having some problems with xdotool here - great program, but unfortunately hasn't been behaving.</p>
  
  <pre><code>from Tkinter import *
  import os
  
  class Ed:
   def __init__(self,parent):
      self.button = Button(parent,command=self.passthrough)
      self.button.pack()
      parent.geometry('+100+100')
  
   def passthrough(self):
       print 'clicked'
       os.popen("""
       window=$(xdotool selectwindow click)
       xdotool mousemove 110 140
       xdotool click --window $window
       """)
  
  root = Tk()
  app = Ed(root)
  root.mainloop()
  </code></pre>
  
  <p>The program is supposed to render a window with a button in it. When the button is clicked, the cursor changes and you move the mouse off the window and click on the window behind it (eg GIMP). Then the mouse goes back to over the button, but clicks through to the program behind. However, it is not doing that. Apologies in advance, it is a hard idea to describe.</p>
  
  <p>I would be really greatful for any help you can provide.</p>
  
  <p>Cheers!</p>