diff options
Diffstat (limited to 'video')
-rw-r--r-- | video/out/x11_common.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/video/out/x11_common.c b/video/out/x11_common.c index 898efd2ad5..c209472657 100644 --- a/video/out/x11_common.c +++ b/video/out/x11_common.c @@ -756,6 +756,16 @@ static void vo_x11_decoration(struct vo *vo, bool d) PropModeReplace, (unsigned char *) &mhints, 5); } +static void vo_x11_wm_hints(struct vo *vo, Window window) +{ + struct vo_x11_state *x11 = vo->x11; + XWMHints hints = {0}; + hints.flags = InputHint | StateHint; + hints.input = 1; + hints.initial_state = NormalState; + XSetWMHints(x11->display, window, &hints); +} + static void vo_x11_classhint(struct vo *vo, Window window, const char *name) { struct vo_x11_state *x11 = vo->x11; @@ -1615,6 +1625,7 @@ bool vo_x11_create_vo_window(struct vo *vo, XVisualInfo *vis, if (x11->window == None) { vo_x11_create_window(vo, vis, (struct mp_rect){.x1 = 320, .y1 = 200 }); vo_x11_classhint(vo, x11->window, classname); + vo_x11_wm_hints(vo, x11->window); x11->window_hidden = true; } |