Fix some issues reported by deronj:
- Hopefully fix a crash in compCheckRedirect on unrealizing windows. - Remove an extern that doesn't point at anything.
This commit is contained in:
parent
1a073786e0
commit
789cf3ed84
|
@ -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
|
||||||
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)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue