From f8dfa4cb70aa7804ec4e2b733d2d4e33335c7d03 Mon Sep 17 00:00:00 2001 From: Shaolin Date: Tue, 4 Sep 2018 23:29:37 -0300 Subject: [PATCH] UI: Fix not all projectors using ProjectorAlwaysOnTop --- UI/window-projector.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/UI/window-projector.cpp b/UI/window-projector.cpp index 2ee09f7c8..9747d66da 100644 --- a/UI/window-projector.cpp +++ b/UI/window-projector.cpp @@ -36,9 +36,6 @@ 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); @@ -51,10 +48,11 @@ OBSProjector::OBSProjector(QWidget *widget, obs_source_t *source_, int monitor, addAction(action); connect(action, SIGNAL(triggered()), this, SLOT(EscapeTriggered())); - - SetAlwaysOnTop(this, true); } + SetAlwaysOnTop(this, config_get_bool(GetGlobalConfig(), + "BasicWindow", "ProjectorAlwaysOnTop")); + setAttribute(Qt::WA_DeleteOnClose, true); //disable application quit when last window closed