aboutsummaryrefslogtreecommitdiff
path: root/xorg-server/hw/xwin/xlaunch/main.cc
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2011-03-07 11:09:57 +0000
committermarha <marha@users.sourceforge.net>2011-03-07 11:09:57 +0000
commitb5eab44b14b3193bfc327d10e556de8236071716 (patch)
tree3a87385a765eda5106df883ff2fab4c93c2e5a33 /xorg-server/hw/xwin/xlaunch/main.cc
parentfaed2dca735b7aa26a146c5e309cafa8134425b9 (diff)
downloadvcxsrv-b5eab44b14b3193bfc327d10e556de8236071716.tar.gz
vcxsrv-b5eab44b14b3193bfc327d10e556de8236071716.tar.bz2
vcxsrv-b5eab44b14b3193bfc327d10e556de8236071716.zip
Added possibility of mapping the PRIMARY selection
Diffstat (limited to 'xorg-server/hw/xwin/xlaunch/main.cc')
-rw-r--r--xorg-server/hw/xwin/xlaunch/main.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/xorg-server/hw/xwin/xlaunch/main.cc b/xorg-server/hw/xwin/xlaunch/main.cc
index 26a132756..5eedc75e8 100644
--- a/xorg-server/hw/xwin/xlaunch/main.cc
+++ b/xorg-server/hw/xwin/xlaunch/main.cc
@@ -202,6 +202,11 @@ class CMyWizard : public CWizard
config.clipboard = true;
else
config.clipboard = false;
+ // check for clipboard primary selection
+ if (IsDlgButtonChecked(hwndDlg, IDC_CLIPBOARDPRIMARY))
+ config.clipboardprimary = true;
+ else
+ config.clipboardprimary = false;
// check for wgl
if (IsDlgButtonChecked(hwndDlg, IDC_WGL))
config.wgl = true;
@@ -459,6 +464,7 @@ class CMyWizard : public CWizard
break;
case IDD_EXTRA:
CheckDlgButton(hwndDlg, IDC_CLIPBOARD, config.clipboard?BST_CHECKED:BST_UNCHECKED);
+ CheckDlgButton(hwndDlg, IDC_CLIPBOARDPRIMARY, config.clipboardprimary?BST_CHECKED:BST_UNCHECKED);
CheckDlgButton(hwndDlg, IDC_WGL, config.wgl?BST_CHECKED:BST_UNCHECKED);
SetDlgItemText(hwndDlg, IDC_EXTRA_PARAMS, config.extra_params.c_str());
break;
@@ -558,6 +564,8 @@ class CMyWizard : public CWizard
}
if (config.clipboard)
buffer += "-clipboard ";
+ if (!config.clipboardprimary)
+ buffer += "-noclipboardprimary ";
if (config.wgl)
buffer += "-wgl ";
if (!config.extra_params.empty())