summaryrefslogtreecommitdiffstats
path: root/libvo/x11_common.c
diff options
context:
space:
mode:
authorUoti Urpala <uau@symbol.nonexistent.invalid>2008-04-20 07:36:34 +0300
committerUoti Urpala <uau@symbol.nonexistent.invalid>2008-04-23 13:41:07 +0300
commitacf319b3edea4d8dd0fe338778e08e0d99dc49bb (patch)
tree8beb60e04061fd392637dfa9859a379e2c96f5c8 /libvo/x11_common.c
parentd283d5236ab36bc55c73de4e152dabea7098f850 (diff)
downloadmpv-acf319b3edea4d8dd0fe338778e08e0d99dc49bb.tar.bz2
mpv-acf319b3edea4d8dd0fe338778e08e0d99dc49bb.tar.xz
Create a struct for X11 state
Will be used for common data between X11 VOs. The main reasons for making it a separate struct rather than extra fields in the main VO struct are that some field definitions need X headers and that the code keeps basic X state such as the display connection over opening and closing of individual VOs.
Diffstat (limited to 'libvo/x11_common.c')
-rw-r--r--libvo/x11_common.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libvo/x11_common.c b/libvo/x11_common.c
index 47758b0d08..e5dbee5734 100644
--- a/libvo/x11_common.c
+++ b/libvo/x11_common.c
@@ -122,6 +122,10 @@ static int vo_x11_get_fs_type(int supported);
static void saver_off(Display *);
static void saver_on(Display *);
+void vo_x11_init_state(struct vo_x11_state *s)
+{
+ *s = (struct vo_x11_state){};
+}
/*
* Sends the EWMH fullscreen state event.