summaryrefslogtreecommitdiffstats
path: root/video/out
diff options
context:
space:
mode:
Diffstat (limited to 'video/out')
-rw-r--r--video/out/x11_common.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/video/out/x11_common.c b/video/out/x11_common.c
index 40228903b9..461ff378d0 100644
--- a/video/out/x11_common.c
+++ b/video/out/x11_common.c
@@ -1498,8 +1498,9 @@ static void vo_x11_map_window(struct vo *vo, struct mp_rect rc)
x11_send_ewmh_msg(x11, "_NET_WM_FULLSCREEN_MONITORS", params);
}
- if (x11->opts->all_workspaces) {
- long v = 0xFFFFFFFF;
+ if (x11->opts->all_workspaces || x11->opts->geometry.ws > 0) {
+ long v = x11->opts->all_workspaces
+ ? 0xFFFFFFFF : x11->opts->geometry.ws - 1;
XChangeProperty(x11->display, x11->window, XA(x11, _NET_WM_DESKTOP),
XA_CARDINAL, 32, PropModeReplace, (unsigned char *)&v, 1);
}