mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-09-19 09:41:32 +08:00
UI: Fix always on top w/ projectors on Linux
Apparently, on Linux, you cannot update the window flags while it is still open, so just close the projectors and reopen them again when the setting changes.
This commit is contained in:
committed by
jp9000
parent
27f913843a
commit
227f80ac48
@@ -2958,8 +2958,12 @@ void OBSBasicSettings::SaveGeneralSettings()
|
||||
config_set_bool(GetGlobalConfig(), "BasicWindow",
|
||||
"ProjectorAlwaysOnTop",
|
||||
ui->projectorAlwaysOnTop->isChecked());
|
||||
#if defined(_WIN32) || defined(__APPLE__)
|
||||
main->UpdateProjectorAlwaysOnTop(
|
||||
ui->projectorAlwaysOnTop->isChecked());
|
||||
#else
|
||||
main->ResetProjectors();
|
||||
#endif
|
||||
}
|
||||
|
||||
if (WidgetChanged(ui->recordWhenStreaming))
|
||||
|
||||
Reference in New Issue
Block a user