diff options
author | nanahi <130121847+na-na-hi@users.noreply.github.com> | 2024-04-13 00:00:40 -0400 |
---|---|---|
committer | Kacper Michajłow <kasper93@gmail.com> | 2024-04-18 00:09:09 +0200 |
commit | dcd10345291a3ecd573decc5125de243bcb1351b (patch) | |
tree | 1bff9c7bed0d1b8f13de85fc011e4e72084b3416 /options | |
parent | 3a92d7ba3bedbab1a1f7128fd692cd64083b8227 (diff) | |
download | mpv-dcd10345291a3ecd573decc5125de243bcb1351b.tar.bz2 mpv-dcd10345291a3ecd573decc5125de243bcb1351b.tar.xz |
x11_common: implement --show-in-taskbar option
This adds a new option --show-in-taskbar, which controls whether
mpv appears in taskbars. This is useful for picture-in-picture
setups where the video window should not appear in taskbars.
On X11, this can be controled by setting the
_NET_WM_STATE_SKIP_TASKBAR window state.
Diffstat (limited to 'options')
-rw-r--r-- | options/options.c | 2 | ||||
-rw-r--r-- | options/options.h | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/options/options.c b/options/options.c index d5a86fe204..59c7c4d236 100644 --- a/options/options.c +++ b/options/options.c @@ -169,6 +169,7 @@ static const m_option_t mp_vo_opt_list[] = { {"keepaspect-window", OPT_BOOL(keepaspect_window)}, {"hidpi-window-scale", OPT_BOOL(hidpi_window_scale)}, {"native-fs", OPT_BOOL(native_fs)}, + {"show-in-taskbar", OPT_BOOL(show_in_taskbar)}, {"display-fps-override", OPT_DOUBLE(display_fps_override), M_RANGE(0, DBL_MAX)}, {"video-timing-offset", OPT_DOUBLE(timing_offset), M_RANGE(0.0, 1.0)}, @@ -243,6 +244,7 @@ const struct m_sub_options vo_sub_opts = { .keepaspect_window = true, .native_fs = true, .taskbar_progress = true, + .show_in_taskbar = true, .border = true, .title_bar = true, .appid = "mpv", diff --git a/options/options.h b/options/options.h index 69a50b3350..ae75ec9d11 100644 --- a/options/options.h +++ b/options/options.h @@ -56,6 +56,7 @@ typedef struct mp_vo_opts { bool keepaspect_window; bool hidpi_window_scale; bool native_fs; + bool show_in_taskbar; int64_t WinID; |