VirtualBox

Changeset 52315 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Aug 7, 2014 2:11:33 PM (11 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
95433
Message:

FE/Qt: Just a coding-style fix for r95431 and r95432.

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  
    34053405}
    34063406
     3407#ifdef Q_WS_X11
     3408/* static */
     3409bool 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
    34073419/**
    34083420 *  Removes the accelerator mark (the ampersand symbol) from the given string
     
    46624674}
    46634675
    4664 #ifdef Q_WS_X11
    4665 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, 1
    4672                                /* Source indication (1 = normal application) */
    4673                               );
    4674 }
    4675 #endif
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.h

    r52314 r52315  
    120120    bool switchToMachine(CMachine &machine);
    121121    bool launchMachine(CMachine &machine, bool fHeadless = false);
    122 #ifdef Q_WS_X11
    123     bool setFullScreenMonitorX11(QWidget *pWidget, unsigned long cScreen);
    124 #endif
    125122
    126123    bool isVMConsoleProcess() const { return !vmUuid.isNull(); }
     
    322319
    323320    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 */
    324326
    325327    static QString removeAccelMark (const QString &aText);
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen/UIMachineWindowFullscreen.cpp

    r52313 r52315  
    300300    resize(workingArea.size());
    301301#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. */
    306305#endif /* !Q_WS_MAC */
    307306    /* Adjust guest screen size if necessary: */
     
    332331
    333332    /* 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? */
    337335    placeOnScreen();
    338336
     
    348346
    349347#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));
    356352#endif /* Q_WS_X11 */
    357353}
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette