VirtualBox

Ignore:
Timestamp:
Sep 23, 2011 11:18:17 AM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
74132
Message:

rdesktop: Quick virtual desktop usability hack, disabled by default.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/RDP/client/rdesktop.c

    r37224 r38836  
    139139#endif
    140140
     141#ifdef WITH_BIRD_VD_HACKS
     142RD_BOOL g_keep_virtual_desktop_shortcuts = False;
     143#endif
     144
    141145#ifdef HAVE_ICONV
    142146char g_codepage[16] = "";
     
    251255        fprintf(stderr, "   -4: use RDP version 4\n");
    252256        fprintf(stderr, "   -5: use RDP version 5 (default)\n");
     257#ifdef WITH_BIRD_VD_HACKS
     258        fprintf(stderr, "   -H keep-virtual-desktop-shortcuts: Keep keyboard shortcuts typical\n"
     259                        "      for switching virtual desktops (C-A-Left/Right). \n");
     260#endif
    253261}
    254262
     
    538546#define VNCOPT
    539547#endif
     548#ifdef WITH_BIRD_VD_HACKS
     549#define VDHOPT "H:"
     550#else
     551#define VDHOPT
     552#endif
    540553
    541554        while ((c = getopt(argc, argv,
    542                            VNCOPT "Au:L:d:s:c:p:n:k:g:fbBeEmzCDKS:T:NX:a:x:Pr:045h?")) != -1)
     555                           VNCOPT VDHOPT "Au:L:d:s:c:p:n:k:g:fbBeEmzCDKS:T:NX:a:x:Pr:045h?")) != -1)
    543556        {
    544557                switch (c)
     
    883896                                g_use_rdp5 = True;
    884897                                break;
     898
     899#ifdef WITH_BIRD_VD_HACKS
     900                        case 'H': /* hacks */
     901                                if (!strcmp(optarg, "keep-virtual-desktop-shortcuts"))
     902                                        g_keep_virtual_desktop_shortcuts = True;
     903                                else
     904                                        error("Unknown -H argument\n\n\tPossible argument is: keep-virtual-desktop-shortcuts\n");
     905                                break;
     906#endif
    885907
    886908                        case 'h':
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette