提交 87965dff 编写于 作者: C Clayton Groeneveld

UI: Fix projector always on top not working on Linux

上级 05c9ddd2
...@@ -24,6 +24,9 @@ OBSProjector::OBSProjector(QWidget *widget, obs_source_t *source_, int monitor, ...@@ -24,6 +24,9 @@ OBSProjector::OBSProjector(QWidget *widget, obs_source_t *source_, int monitor,
{ {
type = type_; type = type_;
SetAlwaysOnTop(this, config_get_bool(GetGlobalConfig(), "BasicWindow",
"ProjectorAlwaysOnTop"));
setWindowIcon(QIcon::fromTheme("obs", QIcon(":/res/images/obs.png"))); setWindowIcon(QIcon::fromTheme("obs", QIcon(":/res/images/obs.png")));
if (monitor == -1) if (monitor == -1)
...@@ -38,9 +41,6 @@ OBSProjector::OBSProjector(QWidget *widget, obs_source_t *source_, int monitor, ...@@ -38,9 +41,6 @@ OBSProjector::OBSProjector(QWidget *widget, obs_source_t *source_, int monitor,
addAction(action); addAction(action);
connect(action, SIGNAL(triggered()), this, SLOT(EscapeTriggered())); connect(action, SIGNAL(triggered()), this, SLOT(EscapeTriggered()));
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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册