From a747829ffb807a7e75b6a11128e1dfe5d95948f9 Mon Sep 17 00:00:00 2001 From: cyril <> Date: Wed, 6 Mar 2013 17:07:30 +0100 Subject: Adds raise softhddevice video window support. --- softhddevice.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'softhddevice.cpp') diff --git a/softhddevice.cpp b/softhddevice.cpp index ebaaa0f..1f7dadb 100644 --- a/softhddevice.cpp +++ b/softhddevice.cpp @@ -3186,6 +3186,9 @@ static const char *SVDRPHelpText[] = { "3DOF\n" "\040 3D OSD off.\n", "3DTB\n" "\040 3D OSD Top and Bottom.\n", "3DSB\n" "\040 3D OSD Side by Side.\n", + "RAIS\n" "\040 Raise softhddevice window\n\n" + " If Xserver is not started by softhddevice, the window which\n" + " contains the softhddevice frontend will be raised to the front.\n", NULL }; @@ -3366,6 +3369,15 @@ cString cPluginSoftHdDevice::SVDRPCommand(const char *command, return "3d tb"; } + if (!strcasecmp(command, "RAIS")) { + if (!ConfigStartX11Server) { + VideoRaiseWindow(); + } else { + return "Raise not possible"; + } + return "Window raised"; + } + return NULL; } -- cgit v1.2.3