From 9efada5bb62aebf56086740d95f16ec704ac443b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Wed, 15 Apr 2015 17:52:14 +0200 Subject: [PATCH] Set VirtualTerminal into KD_GRAPHICS mode --- virtual_terminal.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/virtual_terminal.cpp b/virtual_terminal.cpp index 0cfa379d80..7a486b22a2 100644 --- a/virtual_terminal.cpp +++ b/virtual_terminal.cpp @@ -27,6 +27,7 @@ along with this program. If not, see . #include // linux #include +#include #include // system #include @@ -109,6 +110,11 @@ void VirtualTerminal::setup(int vtNr) closeFd(); return; } + if (ioctl(m_vt, KDSETMODE, KD_GRAPHICS) < 0) { + qCWarning(KWIN_CORE()) << "Failed to set tty " << vtNr << " in graphics mode"; + closeFd(); + return; + } if (!createSignalHandler()) { qCWarning(KWIN_CORE) << "Failed to create signalfd"; closeFd();