Merge pull request #1471 from admshao/always-on-top-projectors
UI: Fix not all projectors using ProjectorAlwaysOnTopmaster
commit
d5a144e7aa
|
@ -36,9 +36,6 @@ OBSProjector::OBSProjector(QWidget *widget, obs_source_t *source_, int monitor,
|
||||||
windowedProjectors.push_back(this);
|
windowedProjectors.push_back(this);
|
||||||
|
|
||||||
resize(480, 270);
|
resize(480, 270);
|
||||||
|
|
||||||
SetAlwaysOnTop(this, config_get_bool(GetGlobalConfig(),
|
|
||||||
"BasicWindow", "ProjectorAlwaysOnTop"));
|
|
||||||
} else {
|
} else {
|
||||||
setWindowFlags(Qt::FramelessWindowHint |
|
setWindowFlags(Qt::FramelessWindowHint |
|
||||||
Qt::X11BypassWindowManagerHint);
|
Qt::X11BypassWindowManagerHint);
|
||||||
|
@ -51,10 +48,11 @@ OBSProjector::OBSProjector(QWidget *widget, obs_source_t *source_, int monitor,
|
||||||
addAction(action);
|
addAction(action);
|
||||||
connect(action, SIGNAL(triggered()), this,
|
connect(action, SIGNAL(triggered()), this,
|
||||||
SLOT(EscapeTriggered()));
|
SLOT(EscapeTriggered()));
|
||||||
|
|
||||||
SetAlwaysOnTop(this, true);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
SetAlwaysOnTop(this, config_get_bool(GetGlobalConfig(),
|
||||||
|
"BasicWindow", "ProjectorAlwaysOnTop"));
|
||||||
|
|
||||||
setAttribute(Qt::WA_DeleteOnClose, true);
|
setAttribute(Qt::WA_DeleteOnClose, true);
|
||||||
|
|
||||||
//disable application quit when last window closed
|
//disable application quit when last window closed
|
||||||
|
|
Loading…
Reference in New Issue