From 64718ba8bdcecd8d736a48239847b1f9aadd40ea Mon Sep 17 00:00:00 2001 From: marha Date: Fri, 16 Dec 2011 20:11:18 +0100 Subject: Added -parentprocessid command line parameter --- xorg-server/hw/xwin/winprocarg.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'xorg-server/hw') 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; } -- cgit v1.2.3