Merge remote-tracking branch 'jturney/master'
Conflicts: hw/xwin/winpixmap.c Adam removed a pile of windows code, including this file.
This commit is contained in:
commit
3a123fbdda
|
@ -698,6 +698,7 @@ case $host_os in
|
||||||
CONFIG_UDEV=no
|
CONFIG_UDEV=no
|
||||||
CONFIG_UDEV_KMS=no
|
CONFIG_UDEV_KMS=no
|
||||||
DGA=no
|
DGA=no
|
||||||
|
DRM=no
|
||||||
DRI2=no
|
DRI2=no
|
||||||
DRI3=no
|
DRI3=no
|
||||||
INT10MODULE=no
|
INT10MODULE=no
|
||||||
|
@ -1993,11 +1994,13 @@ if test "x$XORG" = xyes; then
|
||||||
gnu*)
|
gnu*)
|
||||||
XORG_OS_SUBDIR="hurd"
|
XORG_OS_SUBDIR="hurd"
|
||||||
;;
|
;;
|
||||||
|
cygwin*)
|
||||||
|
XORG_OS_SUBDIR="stub"
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
XORG_OS_SUBDIR="stub"
|
XORG_OS_SUBDIR="stub"
|
||||||
AC_MSG_NOTICE([m4_text_wrap(m4_join([ ],
|
AC_MSG_NOTICE([m4_text_wrap(m4_join([ ],
|
||||||
[Your OS is unknown. Xorg currently only supports Linux,],
|
[Your OS is unknown.],
|
||||||
[Free/Open/Net/DragonFlyBSD, Solaris/OpenSolaris, & GNU Hurd.],
|
|
||||||
[If you are interested in porting Xorg to your platform,],
|
[If you are interested in porting Xorg to your platform,],
|
||||||
[please email xorg@lists.freedesktop.org.]))])
|
[please email xorg@lists.freedesktop.org.]))])
|
||||||
;;
|
;;
|
||||||
|
|
|
@ -1004,7 +1004,7 @@ winCheckDisplayNumber(void)
|
||||||
int nDisp;
|
int nDisp;
|
||||||
HANDLE mutex;
|
HANDLE mutex;
|
||||||
char name[MAX_PATH];
|
char name[MAX_PATH];
|
||||||
char *pszPrefix = '\0';
|
const char *pszPrefix = '\0';
|
||||||
OSVERSIONINFO osvi = { 0 };
|
OSVERSIONINFO osvi = { 0 };
|
||||||
|
|
||||||
/* Check display range */
|
/* Check display range */
|
||||||
|
|
|
@ -36,6 +36,7 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define GL_GLEXT_LEGACY
|
#define GL_GLEXT_LEGACY
|
||||||
|
#define GL_GLEXT_PROTOTYPES
|
||||||
#include <GL/gl.h>
|
#include <GL/gl.h>
|
||||||
#undef GL_ARB_imaging
|
#undef GL_ARB_imaging
|
||||||
#undef GL_VERSION_1_3
|
#undef GL_VERSION_1_3
|
||||||
|
@ -46,6 +47,8 @@
|
||||||
#include "glwindows.h"
|
#include "glwindows.h"
|
||||||
#include <glx/glxserver.h>
|
#include <glx/glxserver.h>
|
||||||
|
|
||||||
|
extern void *glXGetProcAddressARB(const char *);
|
||||||
|
|
||||||
static HMODULE hMod = NULL;
|
static HMODULE hMod = NULL;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -90,7 +90,7 @@ winSetAppUserModelID(HWND hWnd, const char *AppID)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
winDebug("winSetAppUserMOdelID - hwnd 0x%08x appid '%s'\n", hWnd, AppID);
|
winDebug("winSetAppUserMOdelID - hwnd 0x%p appid '%s'\n", hWnd, AppID);
|
||||||
|
|
||||||
hr = g_pSHGetPropertyStoreForWindow(hWnd, &IID_IPropertyStore,
|
hr = g_pSHGetPropertyStoreForWindow(hWnd, &IID_IPropertyStore,
|
||||||
(void **) &pps);
|
(void **) &pps);
|
||||||
|
|
|
@ -126,7 +126,8 @@ void
|
||||||
winClipboardInitMonitoredSelections(void)
|
winClipboardInitMonitoredSelections(void)
|
||||||
{
|
{
|
||||||
/* Initialize static variables */
|
/* Initialize static variables */
|
||||||
for (int i = 0; i < CLIP_NUM_SELECTIONS; ++i)
|
int i;
|
||||||
|
for (i = 0; i < CLIP_NUM_SELECTIONS; ++i)
|
||||||
s_iOwners[i] = None;
|
s_iOwners[i] = None;
|
||||||
|
|
||||||
lastOwnedSelectionIndex = CLIP_OWN_NONE;
|
lastOwnedSelectionIndex = CLIP_OWN_NONE;
|
||||||
|
|
|
@ -437,8 +437,8 @@ winChangeDepthDlgProc(HWND hwndDialog, UINT message,
|
||||||
s_pScreenInfo = s_pScreenPriv->pScreenInfo;
|
s_pScreenInfo = s_pScreenPriv->pScreenInfo;
|
||||||
|
|
||||||
#if CYGDEBUG
|
#if CYGDEBUG
|
||||||
winDebug("winChangeDepthDlgProc - WM_INITDIALOG - s_pScreenPriv: %08x, "
|
winDebug("winChangeDepthDlgProc - WM_INITDIALOG - s_pScreenPriv: %p, "
|
||||||
"s_pScreenInfo: %08x\n",
|
"s_pScreenInfo: %p\n",
|
||||||
s_pScreenPriv, s_pScreenInfo);
|
s_pScreenPriv, s_pScreenInfo);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -96,7 +96,6 @@ static HWND
|
||||||
winCreateMsgWindow(void)
|
winCreateMsgWindow(void)
|
||||||
{
|
{
|
||||||
HWND hwndMsg;
|
HWND hwndMsg;
|
||||||
wATOM winClass;
|
|
||||||
|
|
||||||
// register window class
|
// register window class
|
||||||
{
|
{
|
||||||
|
@ -114,7 +113,7 @@ winCreateMsgWindow(void)
|
||||||
wcx.lpszMenuName = NULL;
|
wcx.lpszMenuName = NULL;
|
||||||
wcx.lpszClassName = WINDOW_CLASS_X_MSG;
|
wcx.lpszClassName = WINDOW_CLASS_X_MSG;
|
||||||
wcx.hIconSm = NULL;
|
wcx.hIconSm = NULL;
|
||||||
winClass = RegisterClassEx(&wcx);
|
RegisterClassEx(&wcx);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Create the msg window.
|
// Create the msg window.
|
||||||
|
@ -136,7 +135,7 @@ winCreateMsgWindow(void)
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
winDebug("winCreateMsgWindow - Created msg window hwnd 0x%x\n", hwndMsg);
|
winDebug("winCreateMsgWindow - Created msg window hwnd 0x%p\n", hwndMsg);
|
||||||
|
|
||||||
return hwndMsg;
|
return hwndMsg;
|
||||||
}
|
}
|
||||||
|
|
|
@ -382,7 +382,7 @@ winXIconToHICON(Display * pDisplay, Window id, int iconSize)
|
||||||
static int generation;
|
static int generation;
|
||||||
uint32_t *icon, *icon_data = NULL;
|
uint32_t *icon, *icon_data = NULL;
|
||||||
unsigned long int size;
|
unsigned long int size;
|
||||||
unsigned long int type;
|
Atom type;
|
||||||
int format;
|
int format;
|
||||||
unsigned long int left;
|
unsigned long int left;
|
||||||
|
|
||||||
|
@ -465,7 +465,7 @@ winXIconToHICON(Display * pDisplay, Window id, int iconSize)
|
||||||
xImageIcon =
|
xImageIcon =
|
||||||
XGetImage(pDisplay, hints->icon_pixmap, 0, 0, width, height,
|
XGetImage(pDisplay, hints->icon_pixmap, 0, 0, width, height,
|
||||||
0xFFFFFFFF, ZPixmap);
|
0xFFFFFFFF, ZPixmap);
|
||||||
winDebug("winXIconToHICON: id 0x%x icon Ximage 0x%x\n", id,
|
winDebug("winXIconToHICON: id 0x%x icon Ximage 0x%p\n", id,
|
||||||
xImageIcon);
|
xImageIcon);
|
||||||
|
|
||||||
if (hints->icon_mask)
|
if (hints->icon_mask)
|
||||||
|
|
|
@ -47,7 +47,7 @@ winSetShapeMultiWindow(WindowPtr pWin, int kind)
|
||||||
winScreenPriv(pScreen);
|
winScreenPriv(pScreen);
|
||||||
|
|
||||||
#if CYGMULTIWINDOW_DEBUG
|
#if CYGMULTIWINDOW_DEBUG
|
||||||
ErrorF("winSetShapeMultiWindow - pWin: %08x kind: %i\n", pWin, kind);
|
ErrorF("winSetShapeMultiWindow - pWin: %p kind: %i\n", pWin, kind);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
WIN_UNWRAP(SetShape);
|
WIN_UNWRAP(SetShape);
|
||||||
|
|
|
@ -286,7 +286,7 @@ winChangeWindowAttributesMultiWindow(WindowPtr pWin, unsigned long mask)
|
||||||
winScreenPriv(pScreen);
|
winScreenPriv(pScreen);
|
||||||
|
|
||||||
#if CYGMULTIWINDOW_DEBUG
|
#if CYGMULTIWINDOW_DEBUG
|
||||||
ErrorF("winChangeWindowAttributesMultiWindow - pWin: %08x\n", pWin);
|
ErrorF("winChangeWindowAttributesMultiWindow - pWin: %p\n", pWin);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
WIN_UNWRAP(ChangeWindowAttributes);
|
WIN_UNWRAP(ChangeWindowAttributes);
|
||||||
|
@ -315,7 +315,7 @@ winUnmapWindowMultiWindow(WindowPtr pWin)
|
||||||
winScreenPriv(pScreen);
|
winScreenPriv(pScreen);
|
||||||
|
|
||||||
#if CYGMULTIWINDOW_DEBUG
|
#if CYGMULTIWINDOW_DEBUG
|
||||||
ErrorF("winUnmapWindowMultiWindow - pWin: %08x\n", pWin);
|
ErrorF("winUnmapWindowMultiWindow - pWin: %p\n", pWin);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
WIN_UNWRAP(UnrealizeWindow);
|
WIN_UNWRAP(UnrealizeWindow);
|
||||||
|
@ -346,7 +346,7 @@ winMapWindowMultiWindow(WindowPtr pWin)
|
||||||
winScreenPriv(pScreen);
|
winScreenPriv(pScreen);
|
||||||
|
|
||||||
#if CYGMULTIWINDOW_DEBUG
|
#if CYGMULTIWINDOW_DEBUG
|
||||||
ErrorF("winMapWindowMultiWindow - pWin: %08x\n", pWin);
|
ErrorF("winMapWindowMultiWindow - pWin: %p\n", pWin);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
WIN_UNWRAP(RealizeWindow);
|
WIN_UNWRAP(RealizeWindow);
|
||||||
|
@ -378,7 +378,7 @@ winReparentWindowMultiWindow(WindowPtr pWin, WindowPtr pPriorParent)
|
||||||
winScreenPriv(pScreen);
|
winScreenPriv(pScreen);
|
||||||
|
|
||||||
winDebug
|
winDebug
|
||||||
("winReparentMultiWindow - pWin:%08x XID:0x%x, reparent from pWin:%08x XID:0x%x to pWin:%08x XID:0x%x\n",
|
("winReparentMultiWindow - pWin:%p XID:0x%x, reparent from pWin:%p XID:0x%x to pWin:%p XID:0x%x\n",
|
||||||
pWin, pWin->drawable.id, pPriorParent, pPriorParent->drawable.id,
|
pWin, pWin->drawable.id, pPriorParent, pPriorParent->drawable.id,
|
||||||
pWin->parent, pWin->parent->drawable.id);
|
pWin->parent, pWin->parent->drawable.id);
|
||||||
|
|
||||||
|
@ -409,7 +409,7 @@ winRestackWindowMultiWindow(WindowPtr pWin, WindowPtr pOldNextSib)
|
||||||
winScreenPriv(pScreen);
|
winScreenPriv(pScreen);
|
||||||
|
|
||||||
#if CYGMULTIWINDOW_DEBUG || CYGWINDOWING_DEBUG
|
#if CYGMULTIWINDOW_DEBUG || CYGWINDOWING_DEBUG
|
||||||
winTrace("winRestackMultiWindow - %08x\n", pWin);
|
winTrace("winRestackMultiWindow - %p\n", pWin);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
WIN_UNWRAP(RestackWindow);
|
WIN_UNWRAP(RestackWindow);
|
||||||
|
@ -492,7 +492,7 @@ winCreateWindowsWindow(WindowPtr pWin)
|
||||||
|
|
||||||
winInitMultiWindowClass();
|
winInitMultiWindowClass();
|
||||||
|
|
||||||
winDebug("winCreateWindowsTopLevelWindow - pWin:%08x XID:0x%x \n", pWin,
|
winDebug("winCreateWindowsTopLevelWindow - pWin:%p XID:0x%x \n", pWin,
|
||||||
pWin->drawable.id);
|
pWin->drawable.id);
|
||||||
|
|
||||||
iX = pWin->drawable.x + GetSystemMetrics(SM_XVIRTUALSCREEN);
|
iX = pWin->drawable.x + GetSystemMetrics(SM_XVIRTUALSCREEN);
|
||||||
|
@ -618,7 +618,7 @@ winDestroyWindowsWindow(WindowPtr pWin)
|
||||||
HICON hIcon;
|
HICON hIcon;
|
||||||
HICON hIconSm;
|
HICON hIconSm;
|
||||||
|
|
||||||
winDebug("winDestroyWindowsWindow - pWin:%08x XID:0x%x \n", pWin,
|
winDebug("winDestroyWindowsWindow - pWin:%p XID:0x%x \n", pWin,
|
||||||
pWin->drawable.id);
|
pWin->drawable.id);
|
||||||
|
|
||||||
/* Bail out if the Windows window handle is invalid */
|
/* Bail out if the Windows window handle is invalid */
|
||||||
|
|
|
@ -625,7 +625,7 @@ winIconIsOverride(HICON hicon)
|
||||||
* If @path is NULL, use the built-in default.
|
* If @path is NULL, use the built-in default.
|
||||||
*/
|
*/
|
||||||
static int
|
static int
|
||||||
winPrefsLoadPreferences(char *path)
|
winPrefsLoadPreferences(const char *path)
|
||||||
{
|
{
|
||||||
FILE *prefFile = NULL;
|
FILE *prefFile = NULL;
|
||||||
|
|
||||||
|
|
|
@ -37,8 +37,6 @@
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include "winprefsyacc.h"
|
#include "winprefsyacc.h"
|
||||||
|
|
||||||
extern int yyparse(void);
|
|
||||||
|
|
||||||
extern void ErrorF (const char* /*f*/, ...);
|
extern void ErrorF (const char* /*f*/, ...);
|
||||||
|
|
||||||
/* Copy the parsed string, must be free()d in yacc parser */
|
/* Copy the parsed string, must be free()d in yacc parser */
|
||||||
|
|
|
@ -64,7 +64,7 @@ static void SetDefaultSysMenu (char *menu, int pos);
|
||||||
static void SetTrayIcon (char *fname);
|
static void SetTrayIcon (char *fname);
|
||||||
|
|
||||||
static void OpenMenu(char *menuname);
|
static void OpenMenu(char *menuname);
|
||||||
static void AddMenuLine(char *name, MENUCOMMANDTYPE cmd, char *param);
|
static void AddMenuLine(const char *name, MENUCOMMANDTYPE cmd, const char *param);
|
||||||
static void CloseMenu(void);
|
static void CloseMenu(void);
|
||||||
|
|
||||||
static void OpenIcons(void);
|
static void OpenIcons(void);
|
||||||
|
@ -79,9 +79,10 @@ static void OpenSysMenu(void);
|
||||||
static void AddSysMenuLine(char *matchstr, char *menuname, int pos);
|
static void AddSysMenuLine(char *matchstr, char *menuname, int pos);
|
||||||
static void CloseSysMenu(void);
|
static void CloseSysMenu(void);
|
||||||
|
|
||||||
static int yyerror (char *s);
|
static int yyerror (const char *s);
|
||||||
|
|
||||||
extern char *yytext;
|
extern char *yytext;
|
||||||
|
extern int yylineno;
|
||||||
extern int yylex(void);
|
extern int yylex(void);
|
||||||
|
|
||||||
%}
|
%}
|
||||||
|
@ -252,10 +253,8 @@ debug: DEBUGOUTPUT STRING NEWLINE { ErrorF("LoadPreferences: %s\n", $2); free($
|
||||||
* Errors in parsing abort and print log messages
|
* Errors in parsing abort and print log messages
|
||||||
*/
|
*/
|
||||||
static int
|
static int
|
||||||
yyerror (char *s)
|
yyerror (const char *s)
|
||||||
{
|
{
|
||||||
extern int yylineno; /* Handled by flex internally */
|
|
||||||
|
|
||||||
ErrorF("LoadPreferences: %s line %d\n", s, yylineno);
|
ErrorF("LoadPreferences: %s line %d\n", s, yylineno);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
@ -308,7 +307,7 @@ OpenMenu (char *menuname)
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
AddMenuLine (char *text, MENUCOMMANDTYPE cmd, char *param)
|
AddMenuLine (const char *text, MENUCOMMANDTYPE cmd, const char *param)
|
||||||
{
|
{
|
||||||
if (menu.menuItem==NULL)
|
if (menu.menuItem==NULL)
|
||||||
menu.menuItem = malloc(sizeof(MENUITEM));
|
menu.menuItem = malloc(sizeof(MENUITEM));
|
||||||
|
|
|
@ -988,7 +988,7 @@ winRedrawScreenShadowDDNL(ScreenPtr pScreen)
|
||||||
|
|
||||||
/* Return immediately if we didn't get needed surfaces */
|
/* Return immediately if we didn't get needed surfaces */
|
||||||
if (!pScreenPriv->pddsPrimary4 || !pScreenPriv->pddsShadow4)
|
if (!pScreenPriv->pddsPrimary4 || !pScreenPriv->pddsShadow4)
|
||||||
return;
|
return FALSE;
|
||||||
|
|
||||||
/* Get the origin of the window in the screen coords */
|
/* Get the origin of the window in the screen coords */
|
||||||
ptOrigin.x = pScreenInfo->dwXOffset;
|
ptOrigin.x = pScreenInfo->dwXOffset;
|
||||||
|
|
|
@ -621,7 +621,7 @@ winWindowProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
|
||||||
int iBorderHeight, iBorderWidth;
|
int iBorderHeight, iBorderWidth;
|
||||||
|
|
||||||
#if CYGDEBUG
|
#if CYGDEBUG
|
||||||
winDebug("winWindowProc - WM_GETMINMAXINFO - pScreenInfo: %08x\n",
|
winDebug("winWindowProc - WM_GETMINMAXINFO - pScreenInfo: %p\n",
|
||||||
s_pScreenInfo);
|
s_pScreenInfo);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue