ensure_onscreen for new shell windows

This commit is contained in:
John Colvin committed 2019-04-27 11:09:39 -05:00
1 parent b19380c91c
commit 6d4ece0667
1 file changed
+3 -1
+3 -1
View File
@@ -78,8 +78,10 @@ namespace mbts.ui.shell {
if (position != null) {
window = await FloatingWindow.create_async(document, this, _bookmarks.Value, _window_settings.Value, _window_factory, true);
window.set_position(position);
} else
} else {
window = await FloatingWindow.create_async(document, this, _bookmarks.Value, _window_settings.Value, _window_factory);
window.ensure_onscreen();
}
_windows.Add(window.host_id, window);
window.Closed += (o, e) => _windows.Remove(window.host_id);
}