From b0616a7d2c9e8bf961166ff4e6de19030d6fa9b8 Mon Sep 17 00:00:00 2001 From: Eric Blade Date: Sun, 13 Sep 2009 15:08:23 -0500 Subject: [PATCH] as soon as a stat window is clicked on, with any button, bring it forward. this seems to almost completely solve the insane focus-wobbling in windows --- pyfpdb/Hud.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyfpdb/Hud.py b/pyfpdb/Hud.py index 43b8731b..392aa216 100644 --- a/pyfpdb/Hud.py +++ b/pyfpdb/Hud.py @@ -374,6 +374,7 @@ class Stat_Window: # This handles all callbacks from button presses on the event boxes in # the stat windows. There is a bit of an ugly kludge to separate single- # and double-clicks. + self.window.show_all() if event.button == 3: # right button event newpopup = Popup_window(self.window, self) @@ -388,7 +389,6 @@ class Stat_Window: if event.button == 1: # left button event # TODO: make position saving save sizes as well? - self.window.show_all() if event.state & gtk.gdk.SHIFT_MASK: self.window.begin_resize_drag(gtk.gdk.WINDOW_EDGE_SOUTH_EAST, event.button, int(event.x_root), int(event.y_root), event.time) else: