From 59ccc6465ca15e046ad11362ae5fbb3c71d2c148 Mon Sep 17 00:00:00 2001 From: Alexander Gottwald Date: Mon, 29 Nov 2004 12:34:55 +0000 Subject: Fixed windows.h include for cygwin. Bugzilla #1945: Stop unnecessary reordering. --- hw/xwin/ChangeLog | 8 ++++++++ hw/xwin/winmultiwindowwindow.c | 3 ++- hw/xwin/winmultiwindowwm.c | 7 +++++++ 3 files changed, 17 insertions(+), 1 deletion(-) diff --git a/hw/xwin/ChangeLog b/hw/xwin/ChangeLog index 7a0d7b599..fb5904d95 100644 --- a/hw/xwin/ChangeLog +++ b/hw/xwin/ChangeLog @@ -1,3 +1,11 @@ +2004-11-29 Kensuke Matsuzaki + + * winmultiwindowwm.c: + Fixed windows.h include for cygwin. + + * winmultiwindowwindow.c: + Bugzilla #1945: Stop unnecessary reordering. + 2004-11-24 Alexander Gottwald * winmultiwindowwm.c: diff --git a/hw/xwin/winmultiwindowwindow.c b/hw/xwin/winmultiwindowwindow.c index f1c6e417a..fcea36c96 100644 --- a/hw/xwin/winmultiwindowwindow.c +++ b/hw/xwin/winmultiwindowwindow.c @@ -394,7 +394,8 @@ winRestackWindowMultiWindow (WindowPtr pWin, WindowPtr pOldNextSib) * Calling winReorderWindowsMultiWindow here means our window manager * (i.e. Windows Explorer) has initiative to determine Z order. */ - winReorderWindowsMultiWindow (); + if (pWin->nextSib != pOldNextSib) + winReorderWindowsMultiWindow (); #else /* Bail out if no window privates or window handle is invalid */ if (!pWinPriv || !pWinPriv->hWnd) diff --git a/hw/xwin/winmultiwindowwm.c b/hw/xwin/winmultiwindowwm.c index c737ac05f..ccd1c8099 100644 --- a/hw/xwin/winmultiwindowwm.c +++ b/hw/xwin/winmultiwindowwm.c @@ -48,7 +48,14 @@ #include /* Windows headers */ +#ifdef __CYGWIN__ +/* Fixups to prevent collisions between Windows and X headers */ +#define ATOM DWORD + +#include +#else #include +#endif /* Local headers */ #include "obj_base.h" -- cgit v1.2.3