28 if (display && display->Open())
32 LOG(VB_GENERAL, LOG_CRIT,
"MythXOpenDisplay() failed");
48 QString displayname(DisplayString(display->GetDisplay()));
56 if (!displayname.isEmpty() && !displayname.startsWith(
":") &&
57 !displayname.startsWith(
"unix:") && !displayname.startsWith(
"/") &&
58 displayname.contains(
':'))
91 const char *dispCStr =
nullptr;
95 m_disp = XOpenDisplay(dispCStr);
117 return { displayWidthMM, displayHeightMM };
void Sync(bool Flush=false)
QSize GetDisplayDimensions()
Return the size of the X Display in millimeters.
static bool DisplayIsRemote()
Determine if we are running a remote X11 session.
static QString s_QtX11Display
static void SetQtX11Display(const QString &DisplayStr)
bool Open()
Open the display.
static MythXDisplay * OpenMythXDisplay(bool Warn=true)
MythXLocker(MythXDisplay *Disp)
#define LOG(_MASK_, _LEVEL_, _QSTRING_)