Set VirtualTerminal into KD_GRAPHICS mode
This commit is contained in:
parent
efa0500313
commit
9efada5bb6
1 changed files with 6 additions and 0 deletions
|
@ -27,6 +27,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
#include <QSocketNotifier>
|
||||
// linux
|
||||
#include <linux/major.h>
|
||||
#include <linux/kd.h>
|
||||
#include <linux/vt.h>
|
||||
// system
|
||||
#include <fcntl.h>
|
||||
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue