From 9bce2367142c266c1a1512494a03495583964c32 Mon Sep 17 00:00:00 2001 From: Dudemanguy Date: Wed, 12 Aug 2020 09:51:51 -0500 Subject: wayland: expose wayland-app-id as a user option This is extremely similar to x11's WM_CLASS. This commit allows users to set mpv's app-id at runtime for any of the wayland backends. --- options/options.c | 1 + options/options.h | 1 + 2 files changed, 2 insertions(+) (limited to 'options') diff --git a/options/options.c b/options/options.c index 1e104e886f..6e22de0a07 100644 --- a/options/options.c +++ b/options/options.c @@ -124,6 +124,7 @@ static const m_option_t mp_vo_opt_list[] = { {"window-maximized", OPT_FLAG(window_maximized)}, {"force-window-position", OPT_FLAG(force_window_position)}, {"x11-name", OPT_STRING(winname)}, + {"wayland-app-id", OPT_STRING(appid)}, {"monitoraspect", OPT_FLOAT(force_monitor_aspect), M_RANGE(0.0, 9.0)}, {"monitorpixelaspect", OPT_FLOAT(monitor_pixel_aspect), M_RANGE(1.0/32.0, 32.0)}, diff --git a/options/options.h b/options/options.h index ea5ece65a1..00b58dfbff 100644 --- a/options/options.h +++ b/options/options.h @@ -23,6 +23,7 @@ typedef struct mp_vo_opts { int screen_id; int fsscreen_id; char *winname; + char *appid; int x11_netwm; int x11_bypass_compositor; int native_keyrepeat; -- cgit v1.2.3