Mouse cursor not displaying

"CharlieB" <[email protected]>
Newsgroups gmane.comp.emulators.wine.user
Message-ID <[email protected]>
I am trying to make a workaround for a game in wine (M1 tank platoon 2) on Linux to force the cursor to display in the game's menu but haven't had any luck. I tried to set the cursor to the default pointer with this code (xid is the X window id of the main game window):


Code:

  csr = XCreateFontCursor (g_display, XC_left_ptr);
  XDefineCursor (g_display, xid, csr);

  XQueryTree (g_display, xid, &root, &parent, &children, &n);
  if ((n > 0) && (children != NULL))
  {
    for (i = 0; i < (int) n; i++)
    {
      XDefineCursor (g_display, children[i], csr);
    }
    XFree (children);
  }

  XFreeCursor (g_display, csr);




However the above code has no effect on this game. This code does change the pointer in other windows I have tried.

I am using an old version of wine 1.0.1 to get this game to work. The current versions 1.4 & 1.5.5 both cause black screens.

Does anyone know what could cause a mouse cursor to not be shown?

Thanks in advance,
Charlie
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.