[Wine] X11 Cursor's in Wine Applications

MacNean Tyrrell dardack at gmail.com
Tue Oct 19 12:58:04 CDT 2010


Ok I know I can get X11 theme'd cursor in wine with this code for mouse.c:

+#include <X11/cursorfont.h>

 /***********************************************************************
  * SetCursor (X11DRV.@)
@@ -961,14 +963,19 @@
     /* set the same cursor for all top-level windows of the current thread
*/

     wine_tsx11_lock();
-    cursor = create_cursor( data->display, lpCursor );
+
+    //cursor = create_cursor( data->display, lpCursor );
+    cursor = XCreateFontCursor(data->display, XC_arrow);
+
+

What I'm looking todo is make it so wine uses the X11 cursor, but hides it
like the normal WINE cursor when the program defines it's own cursor (IE
WoW.exe).  Is this possible?

-- 
Sincerely,

MacNean C. Tyrrell
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-users/attachments/20101019/a5a000be/attachment.htm>


More information about the wine-users mailing list