Skip to content

Commit 491d6d0

Browse files
committed
windowstate: Don't re-read window state from settings after first load
This is part of trying to address an infinite re-allocation cycle. Since we really don't care about resizing our window from the settings state anyway, this seems like a low-cost win.
1 parent e450604 commit 491d6d0

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

meld/windowstate.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,12 @@ def bind(self, window):
4040
window.connect('size-allocate', self.on_size_allocate)
4141
window.connect('window-state-event', self.on_window_state_event)
4242

43-
bind_flags = Gio.SettingsBindFlags.DEFAULT
43+
# Don't re-read from gsettings after initialisation; we've seen
44+
# what looked like issues with buggy debounce here.
45+
bind_flags = (
46+
Gio.SettingsBindFlags.DEFAULT |
47+
Gio.SettingsBindFlags.GET_NO_CHANGES
48+
)
4449
self.settings = load_settings_schema(WINDOW_STATE_SCHEMA)
4550
self.settings.bind('width', self, 'width', bind_flags)
4651
self.settings.bind('height', self, 'height', bind_flags)

0 commit comments

Comments
 (0)