summaryrefslogtreecommitdiff
path: root/softhddevice.cpp
diff options
context:
space:
mode:
authorcyril <>2013-03-06 17:07:30 +0100
committerJohns <johns98@gmx.net>2013-03-06 17:07:30 +0100
commita747829ffb807a7e75b6a11128e1dfe5d95948f9 (patch)
tree67a1b457f3a96529299bab45b4b57533beff78ef /softhddevice.cpp
parent7db63875d0198c92e0ab554147ad78f88623b173 (diff)
downloadvdr-plugin-softhddevice-a747829ffb807a7e75b6a11128e1dfe5d95948f9.tar.gz
vdr-plugin-softhddevice-a747829ffb807a7e75b6a11128e1dfe5d95948f9.tar.bz2
Adds raise softhddevice video window support.
Diffstat (limited to 'softhddevice.cpp')
-rw-r--r--softhddevice.cpp12
1 files changed, 12 insertions, 0 deletions
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;
}