From 9eca8b49dbbdd8e4eb4212d6dbac2e144b410965 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 17 Jan 2015 19:26:39 +0100 Subject: x11: fix initial state for --on-all-workspaces --- video/out/x11_common.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'video') 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; -- cgit v1.2.3