VirtualBox

Changeset 3063 in vbox for trunk


Ignore:
Timestamp:
Jun 6, 2007 12:02:34 PM (18 years ago)
Author:
vboxsync
Message:

Dual cursor issue fixed.

Issue description: If the GuestOS is loaded (in case of "Guest Additions" are correctly installed and activated and "Mouse integration" feature is activated too) and the mouse cursor was not moved during the guest loading process then the user can see two mouse cursors - guest's and host's, which are positioned separately. If the user moves the mouse cursor above the VM Console Viewport, both cursors will be positioned one-above-one. It looks like some dirty visual artifact.

File:
1 edited

Legend:

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

    r3051 r3063  
    440440
    441441#if defined (Q_WS_MAC)
    442         /* 
     442        /*
    443443         * Let's try the simple approach first - grab the focus.
    444444         * Getting a window out of the dock (minimized or whatever it's called)
     
    449449            return S_OK;
    450450
    451         ProcessSerialNumber psn = { 0, kCurrentProcess }; 
     451        ProcessSerialNumber psn = { 0, kCurrentProcess };
    452452        OSErr rc = ::SetFrontProcess (&psn);
    453         if (!rc) 
     453        if (!rc)
    454454            QApplication::postEvent (mView, new QEvent ((QEvent::Type)VBoxDefs::ShowWindowEventType));
    455455        else
     
    457457            /*
    458458             * It failed for some reason, send the other process our PSN so it can try.
    459              * (This is just a precaution should Mac OS X start imposing the same sensible 
     459             * (This is just a precaution should Mac OS X start imposing the same sensible
    460460             * focus stealing restrictions that other window managers implement.)
    461461             */
     
    468468        /* Return the ID of the top-level console window. */
    469469        *winId = (ULONG64) mView->topLevelWidget()->winId();
    470 #endif 
     470#endif
    471471
    472472        return S_OK;
     
    947947                     * to the default shape if necessary */
    948948                    if (mouse_absolute)
     949                    {
     950                        CMouse mouse = cconsole.GetMouse();
     951                        mouse.PutMouseEventAbsolute (-1, -1, 0, 0);
    949952                        captureMouse (false, false);
     953                    }
    950954                    else
    951955                        viewport()->unsetCursor();
     
    11081112            case VBoxDefs::ShowWindowEventType:
    11091113            {
    1110                 /* 
    1111                  *  Dunno what Qt3 thinks a window that has minimized to the dock 
     1114                /*
     1115                 *  Dunno what Qt3 thinks a window that has minimized to the dock
    11121116                 *  should be - it is not hidden, neither is it minimized. OTOH it is
    1113                  *  marked shown and visible, but not activated. This latter isn't of 
     1117                 *  marked shown and visible, but not activated. This latter isn't of
    11141118                 *  much help though, since at this point nothing is marked activated.
    11151119                 *  I might have overlooked something, but I'm buggered what if I know
    1116                  *  what. So, I'll just always show & activate the stupid window to 
     1120                 *  what. So, I'll just always show & activate the stupid window to
    11171121                 *  make it get out of the dock when the user wishes to show a VM.
    11181122                 */
     
    11211125                return true;
    11221126            }
    1123 #endif 
     1127#endif
    11241128            default:
    11251129                break;
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