From 407a5c3ce60e3e9d361c6d1e8a2a14c39946707e Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Thu, 26 May 2011 14:48:29 +0000 Subject: Implement support for grabbing the keyboard when in full screen mode. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4449 3789f03b-4d11-0410-bbf8-ca57d06f2519 --- vncviewer/OptionsDialog.cxx | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'vncviewer/OptionsDialog.cxx') diff --git a/vncviewer/OptionsDialog.cxx b/vncviewer/OptionsDialog.cxx index 7a2cf2ed..31064ba9 100644 --- a/vncviewer/OptionsDialog.cxx +++ b/vncviewer/OptionsDialog.cxx @@ -259,6 +259,7 @@ void OptionsDialog::loadOptions(void) acceptClipboardCheckbox->value(acceptClipboard); sendClipboardCheckbox->value(sendClipboard); sendPrimaryCheckbox->value(sendPrimary); + systemKeysCheckbox->value(fullscreenSystemKeys); menuKeyChoice->value(0); @@ -352,6 +353,7 @@ void OptionsDialog::storeOptions(void) acceptClipboard.setParam(acceptClipboardCheckbox->value()); sendClipboard.setParam(sendClipboardCheckbox->value()); sendPrimary.setParam(sendPrimaryCheckbox->value()); + fullscreenSystemKeys.setParam(systemKeysCheckbox->value()); if (menuKeyChoice->value() == 0) menuKey.setParam(""); @@ -683,6 +685,12 @@ void OptionsDialog::createInputPage(int tx, int ty, int tw, int th) _("Send primary selection and cut buffer as clipboard"))); ty += CHECK_HEIGHT + TIGHT_MARGIN; + systemKeysCheckbox = new Fl_Check_Button(LBLRIGHT(tx, ty, + CHECK_MIN_WIDTH, + CHECK_HEIGHT, + _("Pass system keys directly to server (full screen)"))); + ty += CHECK_HEIGHT + TIGHT_MARGIN; + menuKeyChoice = new Fl_Choice(LBLLEFT(tx, ty, 150, CHOICE_HEIGHT, _("Menu key"))); menuKeyChoice->add(_("None"), 0, NULL, (void*)0, FL_MENU_DIVIDER); -- cgit v1.2.3