ensure_onscreen for new shell windows
This commit is contained in:
1 parent
b19380c91c
commit
6d4ece0667
1 file changed
+3
-1
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user