[vlc-devel] [PATCH 1/4] libvlc: Add "fullscreen-monitor" setting

Gabriel Luci github at luci.ca
Sun Oct 13 05:58:28 CEST 2019


This will contain the name of the display device to always show
fullscreen video on.
---
 src/libvlc-module.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/libvlc-module.c b/src/libvlc-module.c
index d3da4e5fb8..163e4deda0 100644
--- a/src/libvlc-module.c
+++ b/src/libvlc-module.c
@@ -314,6 +314,11 @@ static const char *const ppsz_align_descriptions[] =
 #define FULLSCREEN_LONGTEXT N_( \
     "Start video in fullscreen mode" )
 
+#define FULLSCREEN_MONITOR_TEXT N_("Display device for fullscreen video")
+#define FULLSCREEN_MONITOR_LONGTEXT N_( \
+    "In a multiple monitor configuration, you can specify the device name " \
+    "of the display that you want the fullscreen video window to open on." )
+
 #define VIDEO_ON_TOP_TEXT N_("Always on top")
 #define VIDEO_ON_TOP_LONGTEXT N_( \
     "Always place the video window on top of other windows." )
@@ -1641,6 +1646,7 @@ vlc_module_begin ()
     add_bool( "fullscreen", false, FULLSCREEN_TEXT, FULLSCREEN_LONGTEXT, false )
         change_short('f')
         change_safe ()
+    add_string( "fullscreen-monitor", "", FULLSCREEN_MONITOR_TEXT, FULLSCREEN_MONITOR_LONGTEXT, false )
     add_bool( "embedded-video", 1, EMBEDDED_TEXT, EMBEDDED_LONGTEXT,
               true )
     add_bool( "xlib", true, "", "", true )
-- 
2.11.0



More information about the vlc-devel mailing list