Changeset 99438 in vbox
- Timestamp:
- Apr 18, 2023 9:03:26 AM (2 years ago)
- svn:sync-xref-src-repo-rev:
- 156897
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/globals/UICommon.cpp
r99434 r99438 331 331 #ifdef VBOX_WS_X11 332 332 /* Check whether we have compositing manager running: */ 333 m_fCompositingManagerRunning = NativeWindowSubsystem::isCompositingManagerRunning(X11 XServerAvailable());333 m_fCompositingManagerRunning = NativeWindowSubsystem::isCompositingManagerRunning(X11ServerAvailable()); 334 334 335 335 /* Acquire current Window Manager type: */ 336 m_enmWindowManagerType = NativeWindowSubsystem::windowManagerType(X11 XServerAvailable());336 m_enmWindowManagerType = NativeWindowSubsystem::windowManagerType(X11ServerAvailable()); 337 337 #endif /* VBOX_WS_X11 */ 338 338 … … 3024 3024 3025 3025 #ifdef VBOX_WS_X11 3026 bool UICommon::X11 XServerAvailable() const3026 bool UICommon::X11ServerAvailable() const 3027 3027 { 3028 3028 return m_enmDisplayServerType == DisplayServerType_XWayland -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UICommon.h
r99372 r99438 216 216 bool isCompositingManagerRunning() const { return m_fCompositingManagerRunning; } 217 217 /** Returns true if the detected display server type is either xorg or xwayland. */ 218 bool X11 XServerAvailable() const;218 bool X11ServerAvailable() const; 219 219 #endif 220 220 /** @} */ -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UICursor.cpp
r99434 r99438 49 49 (UICommon::qtRTMajorVersion() == 5 && UICommon::qtRTMinorVersion() < 11)) 50 50 { 51 if (NativeWindowSubsystem::checkExtension(uiCommon().X11 XServerAvailable(), "RENDER"))51 if (NativeWindowSubsystem::checkExtension(uiCommon().X11ServerAvailable(), "RENDER")) 52 52 pWidget->setCursor(cursor); 53 53 } … … 75 75 (UICommon::qtRTMajorVersion() == 5 && UICommon::qtRTMinorVersion() < 11)) 76 76 { 77 if (NativeWindowSubsystem::checkExtension(uiCommon().X11 XServerAvailable(), "RENDER"))77 if (NativeWindowSubsystem::checkExtension(uiCommon().X11ServerAvailable(), "RENDER")) 78 78 pWidget->setCursor(cursor); 79 79 } … … 101 101 (UICommon::qtRTMajorVersion() == 5 && UICommon::qtRTMinorVersion() < 11)) 102 102 { 103 if (NativeWindowSubsystem::checkExtension(uiCommon().X11 XServerAvailable(), "RENDER"))103 if (NativeWindowSubsystem::checkExtension(uiCommon().X11ServerAvailable(), "RENDER")) 104 104 pWidget->unsetCursor(); 105 105 } … … 127 127 (UICommon::qtRTMajorVersion() == 5 && UICommon::qtRTMinorVersion() < 11)) 128 128 { 129 if (NativeWindowSubsystem::checkExtension(uiCommon().X11 XServerAvailable(), "RENDER"))129 if (NativeWindowSubsystem::checkExtension(uiCommon().X11ServerAvailable(), "RENDER")) 130 130 pWidget->unsetCursor(); 131 131 } -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIDesktopWidgetWatchdog.cpp
r99434 r99438 790 790 #ifdef VBOX_WS_X11 791 791 # define QWINDOWSIZE_MAX ((1<<24)-1) 792 if (pWidget->isWindow() && pWidget->isVisible() && uiCommon().X11 XServerAvailable())792 if (pWidget->isWindow() && pWidget->isVisible() && uiCommon().X11ServerAvailable()) 793 793 { 794 794 // WORKAROUND: … … 862 862 #elif defined(VBOX_WS_X11) 863 863 864 fResult &= NativeWindowSubsystem::activateWindow(uiCommon().X11 XServerAvailable(), wId, fSwitchDesktop);864 fResult &= NativeWindowSubsystem::activateWindow(uiCommon().X11ServerAvailable(), wId, fSwitchDesktop); 865 865 866 866 #else -
trunk/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualBoxManager.cpp
r99434 r99438 2146 2146 { 2147 2147 #ifdef VBOX_WS_X11 2148 NativeWindowSubsystem::setWMClass(uiCommon().X11 XServerAvailable(), this, "VirtualBox Manager", "VirtualBox Manager");2148 NativeWindowSubsystem::setWMClass(uiCommon().X11ServerAvailable(), this, "VirtualBox Manager", "VirtualBox Manager"); 2149 2149 #endif 2150 2150 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIFrameBuffer.cpp
r99407 r99438 1146 1146 1147 1147 #ifdef VBOX_WS_X11 1148 if (uiCommon().X11 XServerAvailable())1148 if (uiCommon().X11ServerAvailable()) 1149 1149 /* Resync Qt and X11 Server (see xTracker #7547). */ 1150 1150 XSync(NativeWindowSubsystem::X11GetDisplay(), false); -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIKeyboardHandler.cpp
r99434 r99438 266 266 267 267 #elif defined(VBOX_WS_X11) 268 if (uiCommon().X11 XServerAvailable())268 if (uiCommon().X11ServerAvailable()) 269 269 { 270 270 /* On X11, we are using XCB stuff to grab the keyboard. … … 371 371 372 372 #elif defined(VBOX_WS_X11) 373 if (uiCommon().X11 XServerAvailable())373 if (uiCommon().X11ServerAvailable()) 374 374 { 375 375 /* On X11, we are using XCB stuff to grab the keyboard. … … 1037 1037 /* Global settings: */ 1038 1038 #ifdef VBOX_WS_X11 1039 if (uiCommon().X11 XServerAvailable())1039 if (uiCommon().X11ServerAvailable()) 1040 1040 { 1041 1041 /* Initialize the X keyboard subsystem: */ … … 1788 1788 1789 1789 #elif defined(VBOX_WS_X11) 1790 if (uiCommon().X11 XServerAvailable())1790 if (uiCommon().X11ServerAvailable()) 1791 1791 { 1792 1792 Q_UNUSED(pHotKey); … … 1865 1865 1866 1866 #elif defined(VBOX_WS_X11) 1867 if (uiCommon().X11 XServerAvailable())1867 if (uiCommon().X11ServerAvailable()) 1868 1868 { 1869 1869 Window wDummy1, wDummy2; -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineWindow.cpp
r99434 r99438 150 150 strWindowName = QString("VirtualBox Machine UUID: %1").arg(uiCommon().managedVMUuid().toString()); 151 151 /* Assign WM_CLASS property: */ 152 NativeWindowSubsystem::setWMClass(uiCommon().X11 XServerAvailable(), this, strWindowName, strWindowClass);152 NativeWindowSubsystem::setWMClass(uiCommon().X11ServerAvailable(), this, strWindowName, strWindowClass); 153 153 /* Tell the WM we are well behaved wrt Xwayland keyboard-grabs: */ 154 NativeWindowSubsystem::setXwaylandMayGrabKeyboardFlag(uiCommon().X11 XServerAvailable(), this);154 NativeWindowSubsystem::setXwaylandMayGrabKeyboardFlag(uiCommon().X11ServerAvailable(), this); 155 155 #endif 156 156 } -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIHostComboEditor.cpp
r99437 r99438 573 573 #elif defined(VBOX_WS_X11) 574 574 /* Initialize the X keyboard subsystem: */ 575 if (uiCommon().X11 XServerAvailable())575 if (uiCommon().X11ServerAvailable()) 576 576 initMappedX11Keyboard(NativeWindowSubsystem::X11GetDisplay(), gEDataManager->remappedScanCodes()); 577 577 #endif /* VBOX_WS_X11 */ … … 747 747 748 748 # elif defined(VBOX_WS_X11) 749 if (uiCommon().X11 XServerAvailable())749 if (uiCommon().X11ServerAvailable()) 750 750 { 751 751 /* Make sure it's generic XCB event: */
Note:
See TracChangeset
for help on using the changeset viewer.