diff options
Diffstat (limited to 'xorg-server/hw/xwin/winwindow.h')
-rw-r--r-- | xorg-server/hw/xwin/winwindow.h | 84 |
1 files changed, 40 insertions, 44 deletions
diff --git a/xorg-server/hw/xwin/winwindow.h b/xorg-server/hw/xwin/winwindow.h index 7721f1411..ce8157d8a 100644 --- a/xorg-server/hw/xwin/winwindow.h +++ b/xorg-server/hw/xwin/winwindow.h @@ -41,7 +41,7 @@ /* Constant strings */ #ifndef PROJECT_NAME -# define PROJECT_NAME "VcXsrv" +#define PROJECT_NAME "VcXsrv" #endif #define EXECUTABLE_NAME "VcXsrv" #define WINDOW_CLASS "VcXsrv/x" @@ -52,7 +52,7 @@ #define WINDOW_TITLE_X PROJECT_NAME " X" #define WIN_WINDOW_PROP "vcxsrv_window_prop_rl" #ifdef HAS_DEVWINDOWS -# define WIN_MSG_QUEUE_FNAME "/dev/windows" +#define WIN_MSG_QUEUE_FNAME "/dev/windows" #endif #define WIN_WID_PROP "vcxsrv_wid_prop_rl" #define WIN_NEEDMANAGE_PROP "vcxsrv_override_redirect_prop_rl" @@ -61,45 +61,42 @@ typedef struct _winPrivScreenRec *winPrivScreenPtr; - /* * Window privates */ -typedef struct -{ - DWORD dwDummy; - HRGN hRgn; - HWND hWnd; +typedef struct { + DWORD dwDummy; + HRGN hRgn; + HWND hWnd; BOOL OpenGlWindow; - winPrivScreenPtr pScreenPriv; - Bool fXKilled; - HDWP hDwp; + winPrivScreenPtr pScreenPriv; + Bool fXKilled; + HDWP hDwp; #ifdef XWIN_GLX_WINDOWS - Bool fWglUsed; + Bool fWglUsed; #endif - /* Privates used by primary fb DirectDraw server */ - LPDDSURFACEDESC pddsdPrimary; + /* Privates used by primary fb DirectDraw server */ + LPDDSURFACEDESC pddsdPrimary; - /* Privates used by shadow fb DirectDraw Nonlocking server */ - LPDIRECTDRAWSURFACE4 pddsPrimary4; + /* Privates used by shadow fb DirectDraw Nonlocking server */ + LPDIRECTDRAWSURFACE4 pddsPrimary4; - /* Privates used by both shadow fb DirectDraw servers */ - LPDIRECTDRAWCLIPPER pddcPrimary; + /* Privates used by both shadow fb DirectDraw servers */ + LPDIRECTDRAWCLIPPER pddcPrimary; } winPrivWinRec, *winPrivWinPtr; #ifdef XWIN_MULTIWINDOW -typedef struct _winWMMessageRec{ - DWORD dwID; - DWORD msg; - int iWindow; - HWND hwndWindow; - int iX, iY; - int iWidth, iHeight; +typedef struct _winWMMessageRec { + DWORD dwID; + DWORD msg; + int iWindow; + HWND hwndWindow; + int iX, iY; + int iWidth, iHeight; } winWMMessageRec, *winWMMessagePtr; - /* * winmultiwindowwm.c */ @@ -135,27 +132,27 @@ typedef struct _winWMMessageRec{ /* This structure only contains 3 elements... the Motif 2.0 structure contains 5... we only need the first 3... so that is all we will define */ typedef struct MwmHints { - unsigned long flags, functions, decorations; + unsigned long flags, functions, decorations; } MwmHints; + #define PropMwmHintsElements 3 void -winSendMessageToWM (void *pWMInfo, winWMMessagePtr msg); + winSendMessageToWM(void *pWMInfo, winWMMessagePtr msg); Bool -winInitWM (void **ppWMInfo, - pthread_t *ptWMProc, - pthread_t *ptXMsgProc, - pthread_mutex_t *ppmServerStarted, - int dwScreen, - HWND hwndScreen, - BOOL allowOtherWM); + +winInitWM(void **ppWMInfo, + pthread_t * ptWMProc, + pthread_t * ptXMsgProc, + pthread_mutex_t * ppmServerStarted, + int dwScreen, HWND hwndScreen, BOOL allowOtherWM); void -winDeinitMultiWindowWM (void); + winDeinitMultiWindowWM(void); void -winMinimizeWindow (Window id); + winMinimizeWindow(Window id); void winTaskbarInit (void); @@ -165,19 +162,18 @@ winTaskbarDestroy (void); void winSetAppID (HWND hWnd, const char* AppID); - /* * winmultiwindowicons.c */ void -winUpdateIcon (Window id); + winUpdateIcon(Window id); -void -winInitGlobalIcons (void); +void + winInitGlobalIcons(void); -void -winDestroyIcon(HICON hIcon); +void + winDestroyIcon(HICON hIcon); -#endif /* XWIN_MULTIWINDOW */ +#endif /* XWIN_MULTIWINDOW */ #endif |