Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
GSoC
GSoC2018
macOS
vlc
Commits
59add632
Commit
59add632
authored
Sep 17, 2005
by
zorglub
Browse files
Default to disabling screensaver under X (Closes:#253)
Hide screensaver interface from the prefs
parent
3fba3944
Changes
3
Hide whitespace changes
Inline
Side-by-side
modules/misc/screensaver.c
View file @
59add632
...
...
@@ -41,8 +41,6 @@ static void Run ( intf_thread_t *p_intf );
* Module descriptor
*****************************************************************************/
vlc_module_begin
();
set_category
(
CAT_INTERFACE
);
set_subcategory
(
SUBCAT_INTERFACE_CONTROL
);
set_description
(
_
(
"X Screensaver disabler"
)
);
set_capability
(
"interface"
,
0
);
set_callbacks
(
Activate
,
NULL
);
...
...
src/libvlc.c
View file @
59add632
...
...
@@ -748,10 +748,21 @@ int VLC_Init( int i_object, int i_argc, char *ppsz_argv[] )
}
/*
* Al
l
ways load the hotkeys interface if it exists
* Always load the hotkeys interface if it exists
*/
VLC_AddIntf
(
0
,
"hotkeys,none"
,
VLC_FALSE
,
VLC_FALSE
);
/*
* If needed, load the Xscreensaver interface
* Currently, only for X
*/
#ifdef HAVE_X11_XLIB_H
if
(
config_GetInt
(
p_vlc
,
"disable-screensaver"
)
==
1
)
{
VLC_AddIntf
(
0
,
"screensaver"
,
VLC_FALSE
,
VLC_FALSE
);
}
#endif
/*
* FIXME: kludge to use a p_vlc-local variable for the Mozilla plugin
*/
...
...
src/libvlc.h
View file @
59add632
...
...
@@ -250,6 +250,9 @@ static char *ppsz_align_descriptions[] =
#define VIDEO_ON_TOP_LONGTEXT N_("Always place the video window on top of " \
"other windows." )
#define SS_TEXT N_("Disable screensaver")
#define SS_LONGTEXT N_("Disable the screensaver during video playback." )
#define VIDEO_DECO_TEXT N_("Window decorations")
#define VIDEO_DECO_LONGTEXT N_( \
"If this option is disabled, VLC will avoid creating window caption, " \
...
...
@@ -990,6 +993,8 @@ vlc_module_begin();
#endif
add_bool
(
"video-on-top"
,
0
,
NULL
,
VIDEO_ON_TOP_TEXT
,
VIDEO_ON_TOP_LONGTEXT
,
VLC_FALSE
);
add_bool
(
"disable-screensaver"
,
VLC_TRUE
,
NULL
,
SS_TEXT
,
SS_LONGTEXT
,
VLC_TRUE
);
set_section
(
N_
(
"Snapshot"
)
,
NULL
);
add_directory
(
"snapshot-path"
,
NULL
,
NULL
,
SNAP_PATH_TEXT
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment