summaryrefslogtreecommitdiff
path: root/mi/mispritest.h
diff options
context:
space:
mode:
authorPeter Hutterer <peter@cs.unisa.edu.au>2007-04-26 22:18:35 +0930
committerPeter Hutterer <peter@cs.unisa.edu.au>2007-04-26 22:18:35 +0930
commitcfc01115af4136b2dad8218ba6b389513a356a2e (patch)
tree73a5a4351cbc45ae9658f5f34e9e0b1d8992fffe /mi/mispritest.h
parent82f97e1c0cc15b050edc82a8f3b9a423d6cf5fe7 (diff)
Fix cursor rendering for multi-head.
Before putting anything on the screen, check if the GC was made for the ScreenRec we want to render to. If not, toss the GC and create a new one. This is not the best solution but it does the job for now. Same thing for ARGB cursors except that it's even uglier. Also remember the screen the cursor was rendered to and check for the right screen in the BlockHandler, SourceValidate and a few others. Only remove or restore the cursor if we are rendering to the same screen, otherwise we get artefacts that are both funky and really annoying.
Diffstat (limited to 'mi/mispritest.h')
-rw-r--r--mi/mispritest.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/mi/mispritest.h b/mi/mispritest.h
index f4155b5d5..81efa44e4 100644
--- a/mi/mispritest.h
+++ b/mi/mispritest.h
@@ -53,6 +53,7 @@ typedef struct {
WindowPtr pCacheWin; /* window the cursor last seen in */
Bool isInCacheWin;
Bool checkPixels; /* check colormap collision */
+ ScreenPtr pScreen;
} miCursorInfoRec, *miCursorInfoPtr;
/*