mirror of https://github.com/cutefishos/launcher
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
631 B
C++
24 lines
631 B
C++
#pragma once
|
|
|
|
#include <QString>
|
|
|
|
namespace dm {
|
|
|
|
// A VT in KD_GRAPHICS that comes to the front keeps the previous master's
|
|
// frame instead of showing the console.
|
|
bool setGraphicsMode(int vt);
|
|
|
|
// Undoes setGraphicsMode when nobody took the VT: in front, KD_GRAPHICS with
|
|
// VT_AUTO makes the kernel ignore every VT switch (change_console).
|
|
void restoreTextMode(int vt);
|
|
|
|
// logind has taken the VT for a session's controller (VT_PROCESS).
|
|
bool isControlled(int vt);
|
|
|
|
int activeVt();
|
|
|
|
// logind's ActivateSession: the VT switch plus the DRM and input handover.
|
|
bool activateSession(const QString& sessionId);
|
|
|
|
} // namespace dm
|