Changeset 107174 in vbox
- Timestamp:
- Nov 28, 2024 12:34:10 PM (7 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIFrameBuffer.cpp
r106703 r107174 62 62 #ifdef VBOX_WS_NIX 63 63 # include <X11/Xlib.h> 64 # include "VBoxUtils-nix.h" 64 65 # undef Bool // Qt5 vs Xlib gift.. 65 66 #endif /* VBOX_WS_NIX */ … … 452 453 /* Reassign index: */ 453 454 m_uScreenId = m_pMachineView ? m_pMachineView->screenId() : 0; 454 /* Recache window ID: */455 m_iWinId = (m_pMachineView && m_pMachineView->viewport()) ? (LONG64)m_pMachineView->viewport()->winId() : 0;456 455 457 456 #ifdef VBOX_WS_NIX … … 459 458 /* Resync Qt and X11 Server (see xTracker #7547). */ 460 459 XSync(NativeWindowSubsystem::X11GetDisplay(), false); 460 if (NativeWindowSubsystem::displayServerType() == VBGHDISPLAYSERVERTYPE_PURE_WAYLAND) 461 m_iWinId = (m_pMachineView && m_pMachineView->machineWindow()) ? (LONG64)m_pMachineView->machineWindow()->winId() : 0; 462 else 463 m_iWinId = (m_pMachineView && m_pMachineView->viewport()) ? (LONG64)m_pMachineView->viewport()->winId() : 0; 464 #else 465 /* Recache window ID: */ 466 m_iWinId = (m_pMachineView && m_pMachineView->viewport()) ? (LONG64)m_pMachineView->viewport()->winId() : 0; 461 467 #endif 462 468
Note:
See TracChangeset
for help on using the changeset viewer.