aboutsummaryrefslogtreecommitdiff
path: root/xorg-server/mi/mipointer.c
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2010-07-02 14:40:53 +0000
committermarha <marha@users.sourceforge.net>2010-07-02 14:40:53 +0000
commitbb10a5eb99178daa575d5365c8588d891e9988be (patch)
tree8116bb4cbcf79d17b3ae6f4946cd547d14b979ed /xorg-server/mi/mipointer.c
parent1faa0f175bda9074b5f45e5e005d9a80721e3c24 (diff)
parent63a788caa35b080bde1307fc6d5715dec091fe38 (diff)
downloadvcxsrv-bb10a5eb99178daa575d5365c8588d891e9988be.tar.gz
vcxsrv-bb10a5eb99178daa575d5365c8588d891e9988be.tar.bz2
vcxsrv-bb10a5eb99178daa575d5365c8588d891e9988be.zip
svn merge ^/branches/released .
Diffstat (limited to 'xorg-server/mi/mipointer.c')
-rw-r--r--xorg-server/mi/mipointer.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/xorg-server/mi/mipointer.c b/xorg-server/mi/mipointer.c
index 4b9ce0fa5..f11de7da0 100644
--- a/xorg-server/mi/mipointer.c
+++ b/xorg-server/mi/mipointer.c
@@ -452,6 +452,22 @@ miPointerGetScreen(DeviceIntPtr pDev)
return (pPointer) ? pPointer->pScreen : NULL;
}
+/* Controls whether the cursor image should be updated immediately when
+ moved (FALSE) or if something else will be responsible for updating
+ it later (TRUE). Returns current setting.
+ Caller is responsible for calling OsBlockSignal first.
+*/
+Bool
+miPointerSetWaitForUpdate(ScreenPtr pScreen, Bool wait)
+{
+ SetupScreen(pScreen);
+ Bool prevWait = pScreenPriv->waitForUpdate;
+
+ pScreenPriv->waitForUpdate = wait;
+ return prevWait;
+}
+
+
/* Move the pointer on the current screen, and update the sprite. */
static void
miPointerMoved (DeviceIntPtr pDev, ScreenPtr pScreen,