11 #define vo_wm_FULLSCREEN 2
12 #define vo_wm_STAYS_ON_TOP 4
14 #define vo_wm_BELOW 16
15 #define vo_wm_NETWM (vo_wm_FULLSCREEN | vo_wm_STAYS_ON_TOP | vo_wm_ABOVE | vo_wm_BELOW)
17 /* EWMH state actions, see
18 http://freedesktop.org/Standards/wm-spec/index.html#id2768769 */
19 #define _NET_WM_STATE_REMOVE 0 /* remove/unset property */
20 #define _NET_WM_STATE_ADD 1 /* add/set property */
21 #define _NET_WM_STATE_TOGGLE 2 /* toggle property */
23 extern int metacity_hack
;
25 extern int vo_fs_layer
;
26 extern int vo_wm_type
;
27 extern int vo_fs_type
;
28 extern char** vo_fstype_list
;
30 extern char *mDisplayName
;
31 extern Display
*mDisplay
;
32 extern Window mRootWin
;
34 extern int mLocalDisplay
;
36 extern int vo_mouse_autohide
;
38 extern int vo_init( void );
39 extern void vo_uninit( void );
40 extern void vo_hidecursor ( Display
* , Window
);
41 extern void vo_showcursor( Display
*disp
, Window win
);
42 extern void vo_x11_decoration( Display
* vo_Display
,Window w
,int d
);
43 extern void vo_x11_classhint( Display
* display
,Window window
,char *name
);
44 extern void vo_x11_nofs_sizepos(int x
, int y
, int width
, int height
);
45 extern void vo_x11_sizehint( int x
, int y
, int width
, int height
, int max
);
46 extern int vo_x11_check_events(Display
*mydisplay
);
47 extern void vo_x11_selectinput_witherr(Display
*display
, Window w
, long event_mask
);
48 extern void vo_x11_fullscreen( void );
49 extern void vo_x11_setlayer( Display
* mDisplay
,Window vo_window
,int layer
);
50 extern void vo_x11_uninit(void);
51 extern Colormap
vo_x11_create_colormap(XVisualInfo
*vinfo
);
52 extern uint32_t vo_x11_set_equalizer(char *name
, int value
);
53 extern uint32_t vo_x11_get_equalizer(char *name
, int *value
);
54 extern void fstype_help(void);
55 extern Window
vo_x11_create_smooth_window( Display
*mDisplay
, Window mRoot
,
56 Visual
*vis
, int x
, int y
, unsigned int width
, unsigned int height
,
57 int depth
, Colormap col_map
);
58 extern void vo_x11_create_vo_window(XVisualInfo
*vis
, int x
, int y
,
59 unsigned int width
, unsigned int height
, int flags
,
60 Colormap col_map
, const char *classname
, const char *title
);
61 extern void vo_x11_clearwindow_part(Display
*mDisplay
, Window vo_window
,
62 int img_width
, int img_height
, int use_fs
);
63 extern void vo_x11_clearwindow( Display
*mDisplay
, Window vo_window
);
64 extern void vo_x11_ontop(void);
65 extern void vo_x11_ewmh_fullscreen( int action
);
69 extern Window vo_window
;
71 extern XSizeHints vo_hint
;
75 extern unsigned int xv_port
;
77 extern int vo_xv_set_eq(uint32_t xv_port
, char * name
, int value
);
78 extern int vo_xv_get_eq(uint32_t xv_port
, char * name
, int *value
);
80 extern int vo_xv_enable_vsync(void);
82 extern void vo_xv_get_max_img_dim( uint32_t * width
, uint32_t * height
);
84 /*** colorkey handling ***/
85 typedef struct xv_ck_info_s
87 int method
; ///< CK_METHOD_* constants
88 int source
; ///< CK_SRC_* constants
91 #define CK_METHOD_NONE 0 ///< no colorkey drawing
92 #define CK_METHOD_BACKGROUND 1 ///< set colorkey as window background
93 #define CK_METHOD_AUTOPAINT 2 ///< let xv draw the colorkey
94 #define CK_METHOD_MANUALFILL 3 ///< manually draw the colorkey
95 #define CK_SRC_USE 0 ///< use specified / default colorkey
96 #define CK_SRC_SET 1 ///< use and set specified / default colorkey
97 #define CK_SRC_CUR 2 ///< use current colorkey ( get it from xv )
99 extern xv_ck_info_t xv_ck_info
;
100 extern unsigned long xv_colorkey
;
102 extern int vo_xv_init_colorkey(void);
103 extern void vo_xv_draw_colorkey(int32_t x
, int32_t y
, int32_t w
, int32_t h
);
104 extern void xv_setup_colorkeyhandling(char const * ck_method_str
, char const * ck_str
);
106 /*** test functions for common suboptions ***/
107 int xv_test_ck( void * arg
);
108 int xv_test_ckm( void * arg
);
112 extern void vo_setwindow( Window w
,GC g
);
113 extern void vo_x11_putkey(int key
);
116 void saver_off( Display
* );
117 void saver_on( Display
* );
120 void vo_vm_switch(uint32_t, uint32_t, int*, int*);
121 void vo_vm_close(Display
*);
124 void update_xinerama_info(void);
126 int vo_find_depth_from_visuals(Display
*dpy
, int screen
, Visual
**visual_return
);
128 #endif /* X11_COMMON_H */