- Timestamp:
- Oct 12, 2021 5:19:44 PM (3 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/runtime
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineView.cpp
r91363 r91696 348 348 else 349 349 { 350 /* Should we send a hint? */ 351 bool fSendHint = true; 350 352 /* Do not send a hint if nothing has changed to prevent the guest being notified about its own changes: */ 351 if ((int)frameBuffer()->width() != size.width() || (int)frameBuffer()->height() != size.height()) 353 if (fSendHint && (int)frameBuffer()->width() == size.width() && (int)frameBuffer()->height() == size.height()) 354 fSendHint = false; 355 /* Do not send a hint if GA supports graphics and we have sent that hint already: */ 356 if (fSendHint && uisession()->isGuestSupportsGraphics() && m_lastSizeHint == size) 357 fSendHint = false; 358 if (fSendHint) 352 359 { 353 360 LogRel(("GUI: UIMachineView::sltPerformGuestResize: Sending guest size-hint to screen %d as %dx%d\n", … … 362 369 0 /* bits per pixel */, 363 370 true /* notify? */); 371 m_lastSizeHint = size; 364 372 } 365 373 } -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineView.h
r90705 r91696 373 373 QSize m_sizeHintOverride; 374 374 375 /** Last size hint sent as a part of guest auto-resize feature. 376 * @note Useful to avoid spamming CDisplay with same hint before 377 * frame-buffer finally resized to requested size. */ 378 QSize m_lastSizeHint; 379 375 380 /** Holds current host-screen number. */ 376 381 int m_iHostScreenNumber;
Note:
See TracChangeset
for help on using the changeset viewer.