Changeset 52315 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Aug 7, 2014 2:11:33 PM (11 years ago)
- svn:sync-xref-src-repo-rev:
- 95433
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.cpp
r52314 r52315 3405 3405 } 3406 3406 3407 #ifdef Q_WS_X11 3408 /* static */ 3409 bool VBoxGlobal::setFullScreenMonitorX11(QWidget *pWidget, ulong uScreenId) 3410 { 3411 return XXSendClientMessage(pWidget->x11Info().display(), 3412 pWidget->window()->winId(), 3413 "_NET_WM_FULLSCREEN_MONITORS", 3414 uScreenId, uScreenId, uScreenId, uScreenId, 3415 1 /* Source indication (1 = normal application) */); 3416 } 3417 #endif /* Q_WS_X11 */ 3418 3407 3419 /** 3408 3420 * Removes the accelerator mark (the ampersand symbol) from the given string … … 4662 4674 } 4663 4675 4664 #ifdef Q_WS_X114665 bool VBoxGlobal::setFullScreenMonitorX11(QWidget *pWidget,4666 unsigned long cScreen)4667 {4668 return XXSendClientMessage(pWidget->x11Info().display(),4669 pWidget->window()->winId(),4670 "_NET_WM_FULLSCREEN_MONITORS", cScreen, cScreen,4671 cScreen, cScreen, 14672 /* Source indication (1 = normal application) */4673 );4674 }4675 #endif -
trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.h
r52314 r52315 120 120 bool switchToMachine(CMachine &machine); 121 121 bool launchMachine(CMachine &machine, bool fHeadless = false); 122 #ifdef Q_WS_X11123 bool setFullScreenMonitorX11(QWidget *pWidget, unsigned long cScreen);124 #endif125 122 126 123 bool isVMConsoleProcess() const { return !vmUuid.isNull(); } … … 322 319 323 320 static bool activateWindow (WId aWId, bool aSwitchDesktop = true); 321 322 #ifdef Q_WS_X11 323 /** X11: Performs mapping of the passed @a pWidget to host-screen with passed @a uScreenId. */ 324 static bool setFullScreenMonitorX11(QWidget *pWidget, ulong uScreenId); 325 #endif /* Q_WS_X11 */ 324 326 325 327 static QString removeAccelMark (const QString &aText); -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen/UIMachineWindowFullscreen.cpp
r52313 r52315 300 300 resize(workingArea.size()); 301 301 #elif defined(Q_WS_X11) 302 /* Any more-or-less modern window manager provides special mechanisms for 303 * multi-monitor resizing. We may fail on very old ones, but since we 304 * do not test them I prefer not to write speculative code to make them 305 * work. */ 302 /* Any more-or-less modern window manager provides special mechanisms for multi-monitor resizing. 303 * We may fail on very old ones, but since we do not test them we prefer not to write 304 * speculative code to make them work. */ 306 305 #endif /* !Q_WS_MAC */ 307 306 /* Adjust guest screen size if necessary: */ … … 332 331 333 332 /* Make sure this window is maximized and placed on valid screen: */ 334 /** @todo Only needed for legacy window managers on X11 which we do not 335 * test; therefore this may not help there. Better to just refuse 336 * to support them? */ 333 /** @todo Only needed for legacy window managers on X11 which we do not test; 334 * therefore this may not help there. Better to just refuse to support them? */ 337 335 placeOnScreen(); 338 336 … … 348 346 349 347 #ifdef Q_WS_X11 350 /* This tells recent window managers which screen(s) a window should be 351 * mapped to. Apparently some window managers will not respond to requests 352 * for unmapped windows, so do this after the call to showFullScreen(). */ 353 vboxGlobal().setFullScreenMonitorX11(this, pFullscreenLogic 354 ->hostScreenForGuestScreen 355 (m_uScreenId)); 348 /* Tell recent window managers which screen this window should be mapped to. 349 * Apparently some window managers will not respond to requests for 350 * unmapped windows, so do this *after* the call to showFullScreen(). */ 351 VBoxGlobal::setFullScreenMonitorX11(this, pFullscreenLogic->hostScreenForGuestScreen(m_uScreenId)); 356 352 #endif /* Q_WS_X11 */ 357 353 }
Note:
See TracChangeset
for help on using the changeset viewer.