VirtualBox

Changeset 78319 in vbox for trunk/src


Ignore:
Timestamp:
Apr 26, 2019 10:18:29 AM (6 years ago)
Author:
vboxsync
Message:

FE/Qt: revert r129302.
bugref:9376: Complete hardware cursor implementation in VMSVGA
This caused bad regressions in mouse handling, and is not actually needed yet.
We can revisit it when we do need it.

File:
1 edited

Legend:

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

    r77937 r78319  
    635635                    break;
    636636                }
    637 #endif /* VBOX_WS_MAC */
    638 #ifdef VBOX_WS_MAC
    639                 case QEvent::Enter:
    640                 {
    641                     /* Disable mouse event compression if we enter the VM view.
    642                      * So all mouse events are registered in the VM.
    643                      * Only do this if the keyboard/mouse is grabbed
    644                      * (this is when we have a valid event handler): */
    645                     if (machineLogic()->keyboardHandler()->isKeyboardGrabbed())
    646                         darwinSetMouseCoalescingEnabled(false);
    647                     break;
    648                 }
    649 #endif /* VBOX_WS_MAC */
    650                 case QEvent::Leave:
    651 #ifdef VBOX_WS_MAC
    652                 {
    653                     /* Enable mouse event compression if we leave the VM view.
    654                      * This is necessary for having smooth resizing of the VM/other windows: */
    655                     ::darwinSetMouseCoalescingEnabled(true);
    656 
    657                     /* This event should be also processed using next 'case': */
    658                 }
    659                 RT_FALL_THRU();
    660637#endif /* VBOX_WS_MAC */
    661638                case QEvent::MouseMove:
     
    739716                    }
    740717
    741                     /* Send a pointer-out-of-range event if necessary: */
    742                     if (!pHoveredWidget &&
    743                         uisession()->isMouseSupportsAbsolute() &&
    744                         uisession()->isMouseIntegrated())
    745                     {
    746                         mouse().PutMouseEventAbsolute(0x7FFFFFFF, 0x7FFFFFFF, 0, 0, 0);
    747                         break;
    748                     }
    749 
    750718                    /* This event should be also processed using next 'case': */
    751719                }
     
    808776                    break;
    809777                }
     778#ifdef VBOX_WS_MAC
     779                case QEvent::Leave:
     780                {
     781                    /* Enable mouse event compression if we leave the VM view.
     782                     * This is necessary for having smooth resizing of the VM/other windows: */
     783                    ::darwinSetMouseCoalescingEnabled(true);
     784                    break;
     785                }
     786                case QEvent::Enter:
     787                {
     788                    /* Disable mouse event compression if we enter the VM view.
     789                     * So all mouse events are registered in the VM.
     790                     * Only do this if the keyboard/mouse is grabbed
     791                     * (this is when we have a valid event handler): */
     792                    if (machineLogic()->keyboardHandler()->isKeyboardGrabbed())
     793                        darwinSetMouseCoalescingEnabled(false);
     794                    break;
     795                }
     796#endif /* VBOX_WS_MAC */
    810797#ifdef VBOX_WS_WIN
    811798                case QEvent::Resize:
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