VirtualBox

Changeset 11796 in vbox


Ignore:
Timestamp:
Aug 29, 2008 9:30:53 AM (16 years ago)
Author:
vboxsync
Message:

FE/Qt: prevent gcc warning in keyboard code

Location:
trunk/src/VBox/Frontends
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/linux/keyboard-new.c

    r11698 r11796  
    377377   
    378378    for (; (main_keyboard_type_list[i].comment != NULL) && (0 == found); ++i)
    379         if (   (   (XKeysymToKeycode(display, XK_Control_L) == main_keyboard_type_list[i].lctrl)
    380                 && (XKeysymToKeycode(display, XK_Caps_Lock) == main_keyboard_type_list[i].capslock)
    381                )
    382             || (   (XKeysymToKeycode(display, XK_Caps_Lock) == main_keyboard_type_list[i].lctrl)
    383                 && (XKeysymToKeycode(display, XK_Control_L) == main_keyboard_type_list[i].capslock)
     379        if (   (   (   (XKeysymToKeycode(display, XK_Control_L) == main_keyboard_type_list[i].lctrl)
     380                    && (XKeysymToKeycode(display, XK_Caps_Lock) == main_keyboard_type_list[i].capslock)
     381                   )
     382                || (   (XKeysymToKeycode(display, XK_Caps_Lock) == main_keyboard_type_list[i].lctrl)
     383                    && (XKeysymToKeycode(display, XK_Control_L) == main_keyboard_type_list[i].capslock)
     384                   )
    384385               ) /* Some people like to switch Capslock and left Ctrl */
    385386            && (XKeysymToKeycode(display, XK_Shift_L)   == main_keyboard_type_list[i].lshift)
  • trunk/src/VBox/Frontends/VirtualBox4/src/linux/keyboard-new.c

    r11698 r11796  
    377377   
    378378    for (; (main_keyboard_type_list[i].comment != NULL) && (0 == found); ++i)
    379         if (   (   (XKeysymToKeycode(display, XK_Control_L) == main_keyboard_type_list[i].lctrl)
    380                 && (XKeysymToKeycode(display, XK_Caps_Lock) == main_keyboard_type_list[i].capslock)
    381                )
    382             || (   (XKeysymToKeycode(display, XK_Caps_Lock) == main_keyboard_type_list[i].lctrl)
    383                 && (XKeysymToKeycode(display, XK_Control_L) == main_keyboard_type_list[i].capslock)
     379        if (   (   (   (XKeysymToKeycode(display, XK_Control_L) == main_keyboard_type_list[i].lctrl)
     380                    && (XKeysymToKeycode(display, XK_Caps_Lock) == main_keyboard_type_list[i].capslock)
     381                   )
     382                || (   (XKeysymToKeycode(display, XK_Caps_Lock) == main_keyboard_type_list[i].lctrl)
     383                    && (XKeysymToKeycode(display, XK_Control_L) == main_keyboard_type_list[i].capslock)
     384                   )
    384385               ) /* Some people like to switch Capslock and left Ctrl */
    385386            && (XKeysymToKeycode(display, XK_Shift_L)   == main_keyboard_type_list[i].lshift)
Note: See TracChangeset for help on using the changeset viewer.

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