VirtualBox

Ticket #19482: 19482.patch

File 19482.patch, 1.1 KB (added by Rich McAllister, 4 years ago)

Fix by relocating mouse event coordinate. Released under MIT license.

  • src/VBox/Frontends/VirtualBox/src/softkeyboard/UISoftKeyboard.cpp

     
    27722772    if (!pPhysicalLayout)
    27732773        return 0;
    27742774
     2775    QPoint fullkbEventPosition = QPoint(eventPosition);
     2776
     2777    if (m_fHideMultimediaKeys)
     2778        fullkbEventPosition.setY(fullkbEventPosition.y() + m_multiMediaKeysLayout.totalHeight());
     2779
    27752780    UISoftKeyboardKey *pKey = 0;
    27762781    QVector<UISoftKeyboardRow> &rows = pPhysicalLayout->rows();
    27772782    for (int i = 0; i < rows.size(); ++i)
     
    27802785        for (int j = 0; j < keys.size(); ++j)
    27812786        {
    27822787            UISoftKeyboardKey &key = keys[j];
    2783             if (key.polygonInGlobal().containsPoint(eventPosition, Qt::OddEvenFill))
     2788            if (key.polygonInGlobal().containsPoint(fullkbEventPosition, Qt::OddEvenFill))
    27842789            {
    27852790                pKey = &key;
    27862791                break;

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