Attempt to fix a hang in tunnellet X11 situations. Closes LP#943171

This commit is contained in:
Chris Jones 2012-10-18 14:37:46 -07:00
parent 3f0b50f7f9
commit 6da60c043b
1 changed files with 4 additions and 3 deletions

View File

@ -351,9 +351,10 @@ class Config(object):
self.gconf = gconf.client_get_default() self.gconf = gconf.client_get_default()
value = self.gconf.get('/apps/metacity/general/focus_mode') value = self.gconf.get('/apps/metacity/general/focus_mode')
self.system_focus = value.get_string() if value:
self.gconf.notify_add('/apps/metacity/general/focus_mode', self.system_focus = value.get_string()
self.on_gconf_notify) self.gconf.notify_add('/apps/metacity/general/focus_mode',
self.on_gconf_notify)
return(self.system_focus) return(self.system_focus)
def on_gconf_notify(self, _client, _cnxn_id, _entry, _what): def on_gconf_notify(self, _client, _cnxn_id, _entry, _what):