[Spice-commits] client/application.cpp

Hans de Goede jwrdegoede at kemper.freedesktop.org
Wed Dec 19 06:06:29 PST 2012


 client/application.cpp |    7 +++++++
 1 file changed, 7 insertions(+)

New commits:
commit bc3f0d463ea85af5dd953776d8a23ba9fe548230
Author: Hans de Goede <hdegoede at redhat.com>
Date:   Tue Dec 18 11:51:49 2012 +0100

    spice-client: Add --hotkeys cmdline option
    
    To allow using the existing mechanism to override the default hotkeys from
    the cmdline.
    
    Signed-off-by: Hans de Goede <hdegoede at redhat.com>

diff --git a/client/application.cpp b/client/application.cpp
index d9da67f..8902642 100644
--- a/client/application.cpp
+++ b/client/application.cpp
@@ -2265,6 +2265,7 @@ bool Application::process_cmd_line(int argc, char** argv, bool &full_screen)
         SPICE_OPT_DISABLE_DISPLAY_EFFECTS,
         SPICE_OPT_CONTROLLER,
         SPICE_OPT_TITLE,
+        SPICE_OPT_HOTKEYS,
 #ifdef USE_SMARTCARD
         SPICE_OPT_SMARTCARD,
         SPICE_OPT_NOSMARTCARD,
@@ -2335,6 +2336,9 @@ bool Application::process_cmd_line(int argc, char** argv, bool &full_screen)
     parser.add(SPICE_OPT_CONTROLLER, "controller", "enable external controller");
 
     parser.add(SPICE_OPT_TITLE, "title", "set window title", "title", true, 't');
+    parser.add(SPICE_OPT_HOTKEYS, "hotkeys", "Set hotkey keybindings",
+               "toggle-fullscreen=shift+f11,release-cursor=shift+f12,etc.",
+               true);
 
 #ifdef USE_SMARTCARD
     parser.add(SPICE_OPT_SMARTCARD, "smartcard", "enable smartcard channel");
@@ -2460,6 +2464,9 @@ bool Application::process_cmd_line(int argc, char** argv, bool &full_screen)
         case SPICE_OPT_TITLE:
             set_title(val);
             break;
+        case SPICE_OPT_HOTKEYS:
+            set_hotkeys(val);
+            break;
 #ifdef USE_SMARTCARD
         case SPICE_OPT_SMARTCARD:
             _smartcard_options->enable= true;


More information about the Spice-commits mailing list