- Timestamp:
- Jul 11, 2016 10:51:34 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIKeyboardHandler.cpp
r62119 r62154 396 396 free(pGrabReply); 397 397 398 /* Successfully captured, stop delayed capture attempts: */ 399 m_idxDelayedKeyboardCaptureView = -1; 400 398 401 # endif /* QT_VERSION >= 0x050000 */ 399 402 #else … … 409 412 /* Store new keyboard-captured state value: */ 410 413 m_fIsKeyboardCaptured = true; 411 #if defined(VBOX_WS_X11) && QT_VERSION >= 0x050000412 /* Successfully captured, stop delayed capture attempts: */413 m_idxDelayedKeyboardCaptureView = -1;414 #endif /* VBOX_WS_X11 && QT_VERSION >= 0x050000 */415 414 416 415 /* Notify all the listeners: */ … … 421 420 void UIKeyboardHandler::releaseKeyboard() 422 421 { 422 #if defined(VBOX_WS_X11) && QT_VERSION >= 0x050000 423 /* If we haven't captured the keyboard by now it is too late: */ 424 m_idxDelayedKeyboardCaptureView = -1; 425 #endif /* VBOX_WS_X11 && QT_VERSION >= 0x050000 */ 426 423 427 /* Do NOT release the keyboard if it is already released: */ 424 428 if (!m_fIsKeyboardCaptured) … … 506 510 /* Store new keyboard-captured state value: */ 507 511 m_fIsKeyboardCaptured = false; 508 #if defined(VBOX_WS_X11) && QT_VERSION >= 0x050000509 /* If we haven't captured the keyboard by now it is too late: */510 m_idxDelayedKeyboardCaptureView = -1;511 #endif /* VBOX_WS_X11 && QT_VERSION >= 0x050000 */512 512 513 513 /* Notify all the listeners: */
Note:
See TracChangeset
for help on using the changeset viewer.