Commit 8fab4afb authored by Mike Gabriel's avatar Mike Gabriel

hw/nxagent/NXmiwindow.c: Drop complete file.

Reasoning: (1) The diff between this file and mi/miwindow.c is so minimal, we simply apply the change to mi/miwindow.c. (2) In recent X.org, the fixed code has gone, so this patch won't exist after having rebased nx-libs against X.org.
parent 148f7506
...@@ -360,7 +360,6 @@ NXAGENTOBJS = hw/nxagent/miinitext.o \ ...@@ -360,7 +360,6 @@ NXAGENTOBJS = hw/nxagent/miinitext.o \
hw/nxagent/NXmiglyph.o \ hw/nxagent/NXmiglyph.o \
hw/nxagent/NXmiexpose.o \ hw/nxagent/NXmiexpose.o \
hw/nxagent/NXresource.o \ hw/nxagent/NXresource.o \
hw/nxagent/NXmiwindow.o \
hw/nxagent/NXdamage.o hw/nxagent/NXdamage.o
#elif !defined(LynxOSArchitecture) && \ #elif !defined(LynxOSArchitecture) && \
!defined(Win32Architecture) && \ !defined(Win32Architecture) && \
...@@ -381,7 +380,6 @@ NXAGENTOBJS = hw/nxagent/miinitext.o \ ...@@ -381,7 +380,6 @@ NXAGENTOBJS = hw/nxagent/miinitext.o \
hw/nxagent/NXmiglyph.o \ hw/nxagent/NXmiglyph.o \
hw/nxagent/NXmiexpose.o \ hw/nxagent/NXmiexpose.o \
hw/nxagent/NXresource.o \ hw/nxagent/NXresource.o \
hw/nxagent/NXmiwindow.o \
hw/nxagent/NXdamage.o hw/nxagent/NXdamage.o
#else #else
NXAGENTOBJS = hw/nxagent/miinitext.o \ NXAGENTOBJS = hw/nxagent/miinitext.o \
...@@ -400,7 +398,6 @@ NXAGENTOBJS = hw/nxagent/miinitext.o \ ...@@ -400,7 +398,6 @@ NXAGENTOBJS = hw/nxagent/miinitext.o \
hw/nxagent/NXmiglyph.o \ hw/nxagent/NXmiglyph.o \
hw/nxagent/NXmiexpose.o \ hw/nxagent/NXmiexpose.o \
hw/nxagent/NXresource.o \ hw/nxagent/NXresource.o \
hw/nxagent/NXmiwindow.o \
hw/nxagent/NXdamage.o \ hw/nxagent/NXdamage.o \
dix/main.o dix/main.o
#endif #endif
......
...@@ -23,7 +23,6 @@ SRCS = NXwindow.c \ ...@@ -23,7 +23,6 @@ SRCS = NXwindow.c \
NXmiglyph.c \ NXmiglyph.c \
NXmiexpose.c \ NXmiexpose.c \
NXresource.c \ NXresource.c \
NXmiwindow.c \
NXdamage.c \ NXdamage.c \
NXmitrap.c \ NXmitrap.c \
Args.c \ Args.c \
...@@ -85,7 +84,6 @@ OBJS = NXwindow.o \ ...@@ -85,7 +84,6 @@ OBJS = NXwindow.o \
NXmiglyph.o \ NXmiglyph.o \
NXmiexpose.o \ NXmiexpose.o \
NXresource.o \ NXresource.o \
NXmiwindow.o \
NXdamage.o \ NXdamage.o \
NXmitrap.o \ NXmitrap.o \
Args.o \ Args.o \
......
...@@ -1048,7 +1048,25 @@ miSetShape(pWin) ...@@ -1048,7 +1048,25 @@ miSetShape(pWin)
bsExposed = (*pScreen->TranslateBackingStore) bsExposed = (*pScreen->TranslateBackingStore)
(pWin, 0, 0, pOldClip, (pWin, 0, 0, pOldClip,
pWin->drawable.x, pWin->drawable.y); pWin->drawable.x, pWin->drawable.y);
if (WasViewable)
/*
* Applies to NXAGENT_SERVER builds:
*
* We got a few, rare, segfaults here after having
* started using the backing store. It may be a
* different bug but miChangeSaveUnder() calls mi-
* CheckSubSaveUnder() that, in turn, can change
* the backing store attribute of the window. This
* means that we may try to destroy the region
* even if it was not created at the beginning of
* this function as, at the time, the backing store
* was off. miCheckSubSaveUnder() appear to get a
* pointer to the parent, so maybe doesn't change
* the attribute of the window itself. This is to
* be better investigated.
*/
if (WasViewable && pOldClip)
RegionDestroy(pOldClip); RegionDestroy(pOldClip);
if (bsExposed) if (bsExposed)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment