Merge pull request #1457 from admshao/fix-projectors-always-on-top
UI: Use AlwaysOnTop option for windowed projectorsmaster
commit
86b7b0b6d5
|
@ -36,6 +36,9 @@ OBSProjector::OBSProjector(QWidget *widget, obs_source_t *source_, int monitor,
|
|||
windowedProjectors.push_back(this);
|
||||
|
||||
resize(480, 270);
|
||||
|
||||
SetAlwaysOnTop(this, config_get_bool(GetGlobalConfig(),
|
||||
"BasicWindow", "ProjectorAlwaysOnTop"));
|
||||
} else {
|
||||
setWindowFlags(Qt::FramelessWindowHint |
|
||||
Qt::X11BypassWindowManagerHint);
|
||||
|
@ -48,6 +51,8 @@ OBSProjector::OBSProjector(QWidget *widget, obs_source_t *source_, int monitor,
|
|||
addAction(action);
|
||||
connect(action, SIGNAL(triggered()), this,
|
||||
SLOT(EscapeTriggered()));
|
||||
|
||||
SetAlwaysOnTop(this, true);
|
||||
}
|
||||
|
||||
setAttribute(Qt::WA_DeleteOnClose, true);
|
||||
|
@ -68,11 +73,6 @@ OBSProjector::OBSProjector(QWidget *widget, obs_source_t *source_, int monitor,
|
|||
|
||||
connect(this, &OBSQTDisplay::DisplayCreated, addDrawCallback);
|
||||
|
||||
bool alwaysOnTop = config_get_bool(GetGlobalConfig(), "BasicWindow",
|
||||
"ProjectorAlwaysOnTop");
|
||||
if (alwaysOnTop && !isWindow)
|
||||
SetAlwaysOnTop(this, true);
|
||||
|
||||
bool hideCursor = config_get_bool(GetGlobalConfig(),
|
||||
"BasicWindow", "HideProjectorCursor");
|
||||
if (hideCursor && !isWindow) {
|
||||
|
|
Loading…
Reference in New Issue