VirtualBox

Changeset 61094 in vbox for trunk


Ignore:
Timestamp:
May 20, 2016 11:50:31 AM (9 years ago)
Author:
vboxsync
Message:

FE/Qt: Runtime UI: Qt5 migration consequences: There is an issue with duplicated Windows native events causing GUI misbehaviors here and there (for example Host+Del was not working unless keyboard is captured and so on with other Host+[Shortcut]).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineView.cpp

    r60362 r61094  
    18751875        case WM_SYSKEYUP:
    18761876        {
     1877            // WORKAROUND:
     1878            // There is an issue in the Windows Qt5 event processing sequence
     1879            // causing QAbstractNativeEventFilter to receive Windows native events
     1880            // coming not just to the top-level window but to actual target as well.
     1881            // They are calling one - "global event" and another one - "context event".
     1882            // That way native events are always duplicated with almost no possibility
     1883            // to distinguish copies except the fact that synthetic event always have
     1884            // time set to 0 (actually that field was not initialized at all, we had
     1885            // fixed that in our private Qt tool). We should skip such events instantly.
     1886            if (pEvent->time == 0)
     1887                return false;
     1888
    18771889            /* Delegate key-event handling to the keyboard-handler: */
    18781890            return machineLogic()->keyboardHandler()->nativeEventPostprocessor(pMessage, screenId());
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