[vlc-commits] window: add is_decorated config flag
Rémi Denis-Courmont
git at videolan.org
Tue Jun 19 21:09:28 CEST 2018
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Jun 19 21:48:59 2018 +0300| [38f4628d4ae56324e3048b770c5eaa07a28fe029] | committer: Rémi Denis-Courmont
window: add is_decorated config flag
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=38f4628d4ae56324e3048b770c5eaa07a28fe029
---
include/vlc_vout_window.h | 1 +
src/video_output/display.c | 1 +
src/video_output/video_output.c | 1 +
3 files changed, 3 insertions(+)
diff --git a/include/vlc_vout_window.h b/include/vlc_vout_window.h
index 4f65cc1158..3ba0e0f864 100644
--- a/include/vlc_vout_window.h
+++ b/include/vlc_vout_window.h
@@ -100,6 +100,7 @@ typedef struct vout_window_cfg_t {
/* If true, a standalone window is requested */
bool is_standalone;
bool is_fullscreen;
+ bool is_decorated;
#ifdef __APPLE__
/* Window position hint */
diff --git a/src/video_output/display.c b/src/video_output/display.c
index e06ad2ebe3..34a16dac1b 100644
--- a/src/video_output/display.c
+++ b/src/video_output/display.c
@@ -1259,6 +1259,7 @@ vout_display_t *vout_NewSplitter(vout_thread_t *vout,
.width = state->cfg.display.width,
.height = state->cfg.display.height,
.is_standalone = true,
+ .is_decorated = true,
};
memset(&ostate, 0, sizeof(ostate));
diff --git a/src/video_output/video_output.c b/src/video_output/video_output.c
index 8de1b6fcf3..5fc2b1d189 100644
--- a/src/video_output/video_output.c
+++ b/src/video_output/video_output.c
@@ -167,6 +167,7 @@ static vout_thread_t *VoutCreate(vlc_object_t *object,
vout_window_cfg_t wcfg = {
.is_standalone = !var_InheritBool(vout, "embedded-video"),
.is_fullscreen = var_GetBool(vout, "fullscreen"),
+ .is_decorated = var_InheritBool(vout, "video-deco"),
// TODO: take pixel A/R, crop and zoom into account
#ifdef __APPLE__
.x = var_InheritInteger(vout, "video-x"),
More information about the vlc-commits
mailing list