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 /video/out/vo.h | |
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 'video/out/vo.h')
-rw-r--r-- | video/out/vo.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/video/out/vo.h b/video/out/vo.h index 035b4dc1d6..6906cab222 100644 --- a/video/out/vo.h +++ b/video/out/vo.h @@ -36,9 +36,11 @@ #define VO_EVENT_RESIZE 2 // The ICC profile needs to be reloaded #define VO_EVENT_ICC_PROFILE_PATH_CHANGED 4 +// Some other window state changed +#define VO_EVENT_WIN_STATE 8 // Set of events the player core may be interested in. -#define VO_EVENTS_USER (VO_EVENT_RESIZE) +#define VO_EVENTS_USER (VO_EVENT_RESIZE | VO_EVENT_WIN_STATE) enum mp_voctrl { /* signal a device reset seek */ @@ -83,6 +85,8 @@ enum mp_voctrl { VOCTRL_GET_UNFS_WINDOW_SIZE, // int[2] (w/h) VOCTRL_SET_UNFS_WINDOW_SIZE, // int[2] (w/h) + VOCTRL_GET_WIN_STATE, // int* (VO_WIN_STATE_* flags) + // The VO is supposed to set "known" fields, and leave the others // untouched or set to 0. // imgfmt/w/h/d_w/d_h can be omitted for convenience. @@ -130,6 +134,9 @@ struct voctrl_screenshot_args { bool has_osd; }; +// VOCTRL_GET_WIN_STATE +#define VO_WIN_STATE_MINIMIZED 1 + #define VO_TRUE true #define VO_FALSE false #define VO_ERROR -1 |