aboutsummaryrefslogtreecommitdiff
path: root/xorg-server/hw/xwin/winprocarg.c
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2011-12-16 20:11:18 +0100
committerMarc Haesen <marc@hc-consult.be>2011-12-16 20:11:18 +0100
commit64718ba8bdcecd8d736a48239847b1f9aadd40ea (patch)
treec7065a06adab700d808d313872954faee467f83d /xorg-server/hw/xwin/winprocarg.c
parent1f158df2811fe952d91baf79877d7f4ca73430e3 (diff)
downloadvcxsrv-64718ba8bdcecd8d736a48239847b1f9aadd40ea.tar.gz
vcxsrv-64718ba8bdcecd8d736a48239847b1f9aadd40ea.tar.bz2
vcxsrv-64718ba8bdcecd8d736a48239847b1f9aadd40ea.zip
Added -parentprocessid command line parameter
Diffstat (limited to 'xorg-server/hw/xwin/winprocarg.c')
-rw-r--r--xorg-server/hw/xwin/winprocarg.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/xorg-server/hw/xwin/winprocarg.c b/xorg-server/hw/xwin/winprocarg.c
index 4c34d0c84..7cce026c1 100644
--- a/xorg-server/hw/xwin/winprocarg.c
+++ b/xorg-server/hw/xwin/winprocarg.c
@@ -1160,6 +1160,18 @@ ddxProcessArgument (int argc, char *argv[], int i)
g_fswrastwgl = TRUE;
return 1;
}
+ else if (IS_OPTION("-parentprocessid"))
+ {
+ DWORD dwProcessId;
+ CHECK_ARGS (1);
+ dwProcessId = atoi(argv[++i]);
+ if (!AllowSetForegroundWindow(dwProcessId))
+ {
+ winMessageBoxF ("Error calling AllowSetForegroundWindow.", MB_ICONINFORMATION);
+ return 0;
+ }
+ return 2;
+ }
return 0;
}