mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-10-27 00:08:54 -04:00
UI: Check to ensure window starts up inside a monitor
Fixes an issue where the main window would load off-screen if its last saved position was inside a monitor that no longer exists.
This commit is contained in:
1 parent
0157d02564
commit
8932bd39d1
3 files changed
+22
No files matched your search
@@ -132,6 +132,9 @@ OBSBasic::OBSBasic(QWidget *parent)
|
||||
int posy = config_get_int(App()->GlobalConfig(), "BasicWindow",
|
||||
"posy");
|
||||
|
||||
if (!WindowPositionValid(posx, posy))
|
||||
posx = posy = 0;
|
||||
|
||||
setGeometry(posx, posy, width, height);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user