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
;
26 extern int vo_depthonscreen
;
27 extern int vo_screenwidth
;
28 extern int vo_screenheight
;
30 extern int vo_dheight
;
32 extern int vo_fs_layer
;
33 extern int vo_wm_type
;
34 extern int vo_fs_type
;
35 extern char** vo_fstype_list
;
37 extern int vo_rootwin
;
39 extern char *mDisplayName
;
40 extern Display
*mDisplay
;
41 extern Window mRootWin
;
43 extern int mLocalDisplay
;
46 extern int vo_mouse_timer_const
;
47 extern int vo_mouse_autohide
;
49 extern int vo_init( void );
50 extern void vo_uninit( void );
51 extern void vo_hidecursor ( Display
* , Window
);
52 extern void vo_showcursor( Display
*disp
, Window win
);
53 extern void vo_x11_decoration( Display
* vo_Display
,Window w
,int d
);
54 extern void vo_x11_classhint( Display
* display
,Window window
,char *name
);
55 extern void vo_x11_sizehint( int x
, int y
, int width
, int height
, int max
);
56 extern int vo_x11_check_events(Display
*mydisplay
);
57 extern void vo_x11_selectinput_witherr(Display
*display
, Window w
, long event_mask
);
58 extern void vo_x11_fullscreen( void );
59 extern void vo_x11_setlayer( Display
* mDisplay
,Window vo_window
,int layer
);
60 extern void vo_x11_uninit();
61 extern Colormap
vo_x11_create_colormap(XVisualInfo
*vinfo
);
62 extern uint32_t vo_x11_set_equalizer(char *name
, int value
);
63 extern uint32_t vo_x11_get_equalizer(char *name
, int *value
);
64 extern void fstype_help(void);
65 extern Window
vo_x11_create_smooth_window( Display
*mDisplay
, Window mRoot
,
66 Visual
*vis
, int x
, int y
, unsigned int width
, unsigned int height
,
67 int depth
, Colormap col_map
);
68 extern void vo_x11_clearwindow_part(Display
*mDisplay
, Window vo_window
,
69 int img_width
, int img_height
, int use_fs
);
70 extern void vo_x11_clearwindow( Display
*mDisplay
, Window vo_window
);
71 extern void vo_x11_ontop();
72 extern void vo_x11_ewmh_fullscreen( int action
);
76 extern Window vo_window
;
78 extern XSizeHints vo_hint
;
81 extern int vo_xv_set_eq(uint32_t xv_port
, char * name
, int value
);
82 extern int vo_xv_get_eq(uint32_t xv_port
, char * name
, int *value
);
86 extern void vo_setwindow( Window w
,GC g
);
87 extern void vo_x11_putkey(int key
);
90 void saver_off( Display
* );
91 void saver_on( Display
* );
94 void vo_x11_xinerama_move(Display
*dsp
, Window w
);
98 void vo_vm_switch(uint32_t, uint32_t, int*, int*);
99 void vo_vm_close(Display
*);
102 int vo_find_depth_from_visuals(Display
*dpy
, int screen
, Visual
**visual_return
);