title: How can i move a gtk window from a workspace to another using wnck in python?
body: <p>i'm trying to develop a python application that allow to move windows between gnome workspace. I' m using wnck to interact with windows, but i'd like to know how can i move a window from a workspace to another. Anyone can suggests me a way?</p>
  
  <p>I tried with following code</p>
  
  <pre><code>screen = wnck.screen_get_default()
  window_list = screen.get_windows()
  titlePattern = re.compile('.*Downloads.*')
      if len(window_list) == 0:
          print "No Windows Found"
      for win in window_list:
          if(titlePattern.match(win.get_name())):
              win.move_to_workspace(screen.get_workspace(2))
  </code></pre>
  
  <p>but screen.get_workspace(2) return 'None', while it works (but it doesn't move the window!) if i use screen.get_workspace(0) as move_to_workspace parameter.</p>
  
  <p>Can i solve my problem?</p>
  
  <p>Thank you in advance to all.</p>