From 6df56e09ce6b4163346caa5388859ad385f4e71e Mon Sep 17 00:00:00 2001 From: Shaolin Date: Mon, 6 Nov 2017 01:17:17 -0200 Subject: [PATCH] UI: Allow keyboard events on X11 fullscreen projector X11BypassWindowManagerHint Bypass the window manager completely. This results in a borderless window that is not managed at all (i.e., no keyboard input unless you call QWidget::activateWindow() manually). This allows the Esc key to close the projector on X11 --- UI/window-projector.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/UI/window-projector.cpp b/UI/window-projector.cpp index 134258dbb..16860bb24 100644 --- a/UI/window-projector.cpp +++ b/UI/window-projector.cpp @@ -81,6 +81,7 @@ void OBSProjector::Init(int monitor, bool window, QString title) addAction(action); connect(action, SIGNAL(triggered()), this, SLOT(EscapeTriggered())); + activateWindow(); } savedMonitor = monitor;