VirtualBox

Changeset 56927 in vbox


Ignore:
Timestamp:
Jul 14, 2015 1:48:35 PM (9 years ago)
Author:
vboxsync
Message:

FE/Qt: X11: Helpers cleanup/rework (step 1): Doxy.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/platform/x11
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/platform/x11/VBoxX11Helper.cpp

    r52727 r56927  
    55
    66/*
    7  * Copyright (C) 2008-2010 Oracle Corporation
     7 * Copyright (C) 2008-2015 Oracle Corporation
    88 *
    99 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    3333static BOOL gX11DpmsState;
    3434
    35 /**
    36  * Init the screen saver save/restore mechanism.
    37  */
    3835void X11ScreenSaverSettingsInit()
    3936{
     
    4441}
    4542
    46 /**
    47  * Actually this is a big mess. By default the libSDL disables the screen
    48  * saver during the SDL_InitSubSystem() call and restores the saved settings
    49  * during the SDL_QuitSubSystem() call. This mechanism can be disabled by
    50  * setting the environment variable SDL_VIDEO_ALLOW_SCREENSAVER to 1. However,
    51  * there is a known bug in the Debian libSDL: If this environment variable is
    52  * set, the screen saver is still disabled but the old state is not restored
    53  * during SDL_QuitSubSystem()! So the only solution to overcome this problem
    54  * is to save and restore the state prior and after each of these function
    55  * calls.
    56  */
    5743void X11ScreenSaverSettingsSave()
    5844{
     45    /* Actually this is a big mess. By default the libSDL disables the screen saver
     46     * during the SDL_InitSubSystem() call and restores the saved settings during
     47     * the SDL_QuitSubSystem() call. This mechanism can be disabled by setting the
     48     * environment variable SDL_VIDEO_ALLOW_SCREENSAVER to 1. However, there is a
     49     * known bug in the Debian libSDL: If this environment variable is set, the
     50     * screen saver is still disabled but the old state is not restored during
     51     * SDL_QuitSubSystem()! So the only solution to overcome this problem is to
     52     * save and restore the state prior and after each of these function calls. */
     53
    5954    int     dummy;
    6055    CARD16  dummy2;
     
    6661}
    6762
    68 /**
    69  * Restore previously saved screen saver settings.
    70  */
    7163void X11ScreenSaverSettingsRestore()
    7264{
     
    8274}
    8375
    84 /**
    85  * Determine if the current Window manager is KWin (KDE)
    86  */
    8776bool X11IsWindowManagerKWin()
    8877{
  • trunk/src/VBox/Frontends/VirtualBox/src/platform/x11/VBoxX11Helper.h

    r55401 r56927  
    55
    66/*
    7  * Copyright (C) 2006-2010 Oracle Corporation
     7 * Copyright (C) 2006-2015 Oracle Corporation
    88 *
    99 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    1616 */
    1717
    18 #ifndef __VBoxX11Helpers_h__
    19 #define __VBoxX11Helpers_h__
     18#ifndef ___VBoxX11Helpers_h___
     19#define ___VBoxX11Helpers_h___
    2020
     21/** X11: Inits the screen saver save/restore mechanism. */
    2122void X11ScreenSaverSettingsInit();
     23/** X11: Saves screen saver settings. */
    2224void X11ScreenSaverSettingsSave();
     25/** X11: Restores previously saved screen saver settings. */
    2326void X11ScreenSaverSettingsRestore();
     27
     28/** X11: Determines whether current Window Manager is KWin. */
    2429bool X11IsWindowManagerKWin();
    2530
    26 #endif
     31#endif /* !___VBoxX11Helpers_h___ */
    2732
Note: See TracChangeset for help on using the changeset viewer.

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