Changeset 390d7645630b1c52d36aa7329e0ea88a61410354

Show
Ignore:
Timestamp:
06/04/08 01:41:53 (4 years ago)
Author:
Lincoln de Sousa <lincoln@…>
Children:
bd808eb9cb94ea63df244aa3dc58acbfae932261
Parents:
45b8ebb201a981e4bc88fb6532f525fc128c4f36
git-committer:
Lincoln de Sousa <lincoln@…> (06/04/08 01:41:53)
Message:

Avoiding wm warnings when grabing focus in main window

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/guake.py

    rc3cdfce r390d764  
    495495        self.window.show_all() 
    496496        self.window.move(0, 0) 
    497         self.window.window.focus() 
     497 
     498        try: 
     499            # does it work in other gtk backends 
     500            time = gtk.gdk.x11_get_server_time(self.window.window) 
     501        except AttributeError: 
     502            time = 0 
     503        self.window.window.focus(time) 
    498504 
    499505    def hide(self):