VirtualBox

Ignore:
Timestamp:
May 25, 2010 10:56:47 AM (15 years ago)
Author:
vboxsync
Message:

FE/Qt: 4758: New running VM core: Fixed bug in keyboard capturing of multi-monitor VM.

File:
1 edited

Legend:

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

    r29558 r29773  
    643643    /* Setup focus policy: */
    644644    setFocusPolicy(Qt::WheelFocus);
    645 
    646 #if defined Q_WS_WIN
    647     gView = this;
    648 #endif
    649645
    650646#if defined Q_WS_PM
     
    11781174            case QEvent::WindowActivate:
    11791175            {
     1176                gView = this;
    11801177                gKbdHook = SetWindowsHookEx(WH_KEYBOARD_LL, lowLevelKeyboardProc, GetModuleHandle(NULL), 0);
    11811178                AssertMsg(gKbdHook, ("SetWindowsHookEx(): err=%d", GetLastError()));
     
    11881185                    UnhookWindowsHookEx(gKbdHook);
    11891186                    gKbdHook = NULL;
     1187                    if (gView == this)
     1188                        gView = 0;
    11901189                }
    11911190                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