summaryrefslogtreecommitdiffstats
path: root/video/out/x11_common.c
diff options
context:
space:
mode:
Diffstat (limited to 'video/out/x11_common.c')
-rw-r--r--video/out/x11_common.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/video/out/x11_common.c b/video/out/x11_common.c
index 39639db376..38fdca73df 100644
--- a/video/out/x11_common.c
+++ b/video/out/x11_common.c
@@ -1836,8 +1836,12 @@ static void vo_x11_minimize(struct vo *vo)
{
struct vo_x11_state *x11 = vo->x11;
- if (x11->opts->window_minimized)
+ if (x11->opts->window_minimized) {
XIconifyWindow(x11->display, x11->window, x11->screen);
+ } else {
+ long params[5] = {0};
+ x11_send_ewmh_msg(x11, "_NET_ACTIVE_WINDOW", params);
+ }
}
int vo_x11_control(struct vo *vo, int *events, int request, void *arg)