diff options
author | wm4 <wm4@nowhere> | 2014-11-02 20:48:45 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-11-02 20:55:07 +0100 |
commit | 416c86f3cb3535a5b252b8c08a7f4cb253fa495a (patch) | |
tree | e4124d52d879ee55ceca6896da16ebf832f49129 /player/playloop.c | |
parent | 4e2574f025b9f143140008cbed48f6ee9705f813 (diff) | |
download | mpv-416c86f3cb3535a5b252b8c08a7f4cb253fa495a.tar.bz2 mpv-416c86f3cb3535a5b252b8c08a7f4cb253fa495a.tar.xz |
command: add window-minimized property (X11 only)
More or less requested by #1237.
Should be simple to extend this to other backends.
Diffstat (limited to 'player/playloop.c')
-rw-r--r-- | player/playloop.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/player/playloop.c b/player/playloop.c index 85d962fffe..9e1cef957d 100644 --- a/player/playloop.c +++ b/player/playloop.c @@ -676,6 +676,8 @@ static void handle_vo_events(struct MPContext *mpctx) int events = vo ? vo_query_events(vo, VO_EVENTS_USER, true) : 0; if (events & VO_EVENT_RESIZE) mp_notify(mpctx, MP_EVENT_WIN_RESIZE, NULL); + if (events & VO_EVENT_WIN_STATE) + mp_notify(mpctx, MP_EVENT_WIN_STATE, NULL); } void add_frame_pts(struct MPContext *mpctx, double pts) |