summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-01-17 19:26:39 +0100
committerwm4 <wm4@nowhere>2015-01-17 19:26:39 +0100
commit9eca8b49dbbdd8e4eb4212d6dbac2e144b410965 (patch)
tree297192184cd9b11be73fa8c5818c59f3953620da
parent78e3821bd5f378047bd497cea0df7594d24a7194 (diff)
downloadmpv-9eca8b49dbbdd8e4eb4212d6dbac2e144b410965.tar.bz2
mpv-9eca8b49dbbdd8e4eb4212d6dbac2e144b410965.tar.xz
x11: fix initial state for --on-all-workspaces
-rw-r--r--video/out/x11_common.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/video/out/x11_common.c b/video/out/x11_common.c
index be1f1b74ed..a205b81aaf 100644
--- a/video/out/x11_common.c
+++ b/video/out/x11_common.c
@@ -1315,6 +1315,12 @@ static void vo_x11_map_window(struct vo *vo, struct mp_rect rc)
x11_send_ewmh_msg(x11, "_NET_WM_FULLSCREEN_MONITORS", params);
}
+ if (vo->opts->all_workspaces) {
+ long v = 0xFFFFFFFF;
+ XChangeProperty(x11->display, x11->window, XA(x11, _NET_WM_DESKTOP),
+ XA_CARDINAL, 32, PropModeReplace, (unsigned char *)&v, 1);
+ }
+
// map window
int events = StructureNotifyMask | ExposureMask | PropertyChangeMask |
LeaveWindowMask;