Attempt to fix a hang in tunnellet X11 situations. Closes LP#943171
This commit is contained in:
parent
3f0b50f7f9
commit
6da60c043b
|
@ -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):
|
||||||
|
|
Loading…
Reference in New Issue