Commit 789cf3ed authored by Eric Anholt's avatar Eric Anholt
Browse files

Fix some issues reported by deronj:

- Hopefully fix a crash in compCheckRedirect on unrealizing windows.
- Remove an extern that doesn't point at anything.
parent 1a073786
...@@ -75,8 +75,6 @@ typedef struct _CompSubwindows { ...@@ -75,8 +75,6 @@ typedef struct _CompSubwindows {
CompClientWindowPtr clients; CompClientWindowPtr clients;
} CompSubwindowsRec, *CompSubwindowsPtr; } CompSubwindowsRec, *CompSubwindowsPtr;
extern int CompPixmapPrivateIndex;
#define NUM_COMP_ALTERNATE_VISUALS 2 #define NUM_COMP_ALTERNATE_VISUALS 2
typedef struct _CompScreen { typedef struct _CompScreen {
......
...@@ -103,7 +103,10 @@ Bool ...@@ -103,7 +103,10 @@ Bool
compCheckRedirect (WindowPtr pWin) compCheckRedirect (WindowPtr pWin)
{ {
CompWindowPtr cw = GetCompWindow (pWin); CompWindowPtr cw = GetCompWindow (pWin);
Bool should = pWin->viewable && (cw != NULL); Bool should;
should = pWin->realized && (pWin->drawable.class != InputOnly) &&
(cw != NULL);
if (should != pWin->redirectDraw) if (should != pWin->redirectDraw)
{ {
......
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