2001-03-03 22:47:37 +01:00
|
|
|
|
2002-03-07 18:50:25 +01:00
|
|
|
#ifndef X11_COMMON_H
|
|
|
|
#define X11_COMMON_H
|
|
|
|
|
2001-03-03 22:47:37 +01:00
|
|
|
#ifdef X11_FULLSCREEN
|
|
|
|
|
2002-03-08 21:14:08 +01:00
|
|
|
#include <X11/Xlib.h>
|
|
|
|
#include <X11/Xutil.h>
|
|
|
|
|
2001-03-03 22:47:37 +01:00
|
|
|
extern int vo_depthonscreen;
|
|
|
|
extern int vo_screenwidth;
|
|
|
|
extern int vo_screenheight;
|
|
|
|
extern int vo_dwidth;
|
|
|
|
extern int vo_dheight;
|
2002-03-07 18:50:25 +01:00
|
|
|
extern int vo_fs;
|
2002-05-06 17:05:07 +02:00
|
|
|
extern int vo_wm_type;
|
2001-03-03 22:47:37 +01:00
|
|
|
|
2001-06-01 00:32:58 +02:00
|
|
|
extern char *mDisplayName;
|
|
|
|
extern Display *mDisplay;
|
2001-10-24 19:04:08 +02:00
|
|
|
extern Window mRootWin;
|
2001-06-01 00:32:58 +02:00
|
|
|
extern int mScreen;
|
|
|
|
extern int mLocalDisplay;
|
2001-12-28 14:24:27 +01:00
|
|
|
extern int WinID;
|
2001-06-01 00:32:58 +02:00
|
|
|
|
2002-04-16 19:41:29 +02:00
|
|
|
extern int vo_mouse_timer_const;
|
2002-05-03 22:57:13 +02:00
|
|
|
extern int vo_mouse_autohide;
|
2002-04-16 19:41:29 +02:00
|
|
|
|
2001-03-03 22:47:37 +01:00
|
|
|
int vo_init( void );
|
2001-04-13 02:54:05 +02:00
|
|
|
int vo_hidecursor ( Display* , Window );
|
2002-04-16 19:41:29 +02:00
|
|
|
extern void vo_showcursor( Display *disp, Window win );
|
2001-03-03 22:47:37 +01:00
|
|
|
void vo_x11_decoration( Display * vo_Display,Window w,int d );
|
2001-06-17 03:22:09 +02:00
|
|
|
void vo_x11_classhint( Display * display,Window window,char *name );
|
2002-04-25 23:52:47 +02:00
|
|
|
void vo_x11_sizehint( int x, int y, int width, int height, int max );
|
2001-03-03 22:47:37 +01:00
|
|
|
int vo_x11_check_events(Display *mydisplay);
|
2002-03-07 18:50:25 +01:00
|
|
|
void vo_x11_fullscreen( void );
|
2001-03-03 22:47:37 +01:00
|
|
|
#endif
|
|
|
|
|
2002-03-08 21:14:08 +01:00
|
|
|
extern Window vo_window;
|
|
|
|
extern GC vo_gc;
|
|
|
|
extern XSizeHints vo_hint;
|
2002-02-21 22:11:01 +01:00
|
|
|
|
2001-08-28 01:56:44 +02:00
|
|
|
#ifdef HAVE_NEW_GUI
|
|
|
|
extern void vo_setwindow( Window w,GC g );
|
2001-08-31 23:18:22 +02:00
|
|
|
extern void vo_x11_putkey(int key);
|
2001-08-28 01:56:44 +02:00
|
|
|
#endif
|
2001-05-08 14:17:03 +02:00
|
|
|
|
2001-04-10 02:00:04 +02:00
|
|
|
void saver_off( Display * );
|
|
|
|
void saver_on( Display * );
|
2002-01-05 09:49:46 +01:00
|
|
|
|
|
|
|
#ifdef HAVE_XINERAMA
|
|
|
|
void vo_x11_xinerama_move(Display *dsp, Window w);
|
|
|
|
#endif
|
2002-01-31 01:37:27 +01:00
|
|
|
|
|
|
|
#ifdef HAVE_XF86VM
|
|
|
|
void vo_vm_switch(uint32_t, uint32_t, int*, int*);
|
|
|
|
void vo_vm_close(Display*);
|
|
|
|
#endif
|
2002-03-07 18:50:25 +01:00
|
|
|
|
|
|
|
#endif
|