fix: incorrect skipTransformProcessType option parsing in win.setVisibleOnAllWorkspaces() (#32364)

This commit is contained in:
Milan Burda 2022-01-10 11:00:28 +01:00 committed by GitHub
parent 6d8a858897
commit cb2c1f888e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -854,10 +854,10 @@ void BaseWindow::SetVisibleOnAllWorkspaces(bool visible,
gin_helper::Dictionary options;
bool visibleOnFullScreen = false;
bool skipTransformProcessType = false;
args->GetNext(&options) &&
options.Get("visibleOnFullScreen", &visibleOnFullScreen);
args->GetNext(&options) &&
options.Get("skipTransformProcessType", &skipTransformProcessType);
if (args->GetNext(&options)) {
options.Get("visibleOnFullScreen", &visibleOnFullScreen);
options.Get("skipTransformProcessType", &skipTransformProcessType);
}
return window_->SetVisibleOnAllWorkspaces(visible, visibleOnFullScreen,
skipTransformProcessType);
}