This is the mail archive of the
cygwin-xfree
mailing list for the Cygwin XFree86 project.
A fix for the disappearing cursor bug
- From: "Colin Harrison" <colin dot harrison at virgin dot net>
- To: <cygwin-xfree at cygwin dot com>
- Date: Thu, 17 Nov 2005 17:23:39 -0000
- Subject: A fix for the disappearing cursor bug
- Reply-to: cygwin-xfree at cygwin dot com
Hi,
At the risk of crying wolf again, I think this patch fixes the disappearing
hardware cursor bug,
and leaves the software cursor code unmolested!
--- ./programs/Xserver/hw/xwin/save_wincursor.c 2005-11-15
12:14:18.000000000 +0000
+++ ./programs/Xserver/hw/xwin/wincursor.c 2005-11-15
12:28:20.000000000 +0000
@@ -41,6 +41,8 @@
#include <mipointrst.h>
#include <servermd.h>
+extern Bool g_fSoftwareCursor;
+
#ifndef MIN
#define MIN(x,y) ((x)<(y)?(x):(y))
@@ -508,7 +507,7 @@
{
if (pScreenPriv->cursor.visible)
{
- if (!bInhibit)
+ if (!bInhibit && g_fSoftwareCursor)
ShowCursor (FALSE);
pScreenPriv->cursor.visible = FALSE;
}
@@ -531,7 +530,7 @@
if (!pScreenPriv->cursor.visible)
{
- if (!bInhibit)
+ if (!bInhibit && g_fSoftwareCursor)
ShowCursor (TRUE);
pScreenPriv->cursor.visible = TRUE;
}
I've had it on test for two days and released it on Xming.
Colin Harrison
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ: http://x.cygwin.com/docs/faq/