<html><head/><body><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /></head><body>Can someone provide some follow up on this? There is a problem with the current code. The way I fixed it allows the end user to set the mode with xinput. That seems preferable to having to apply a patch to wine if the mouse in use doesn't work.<br><br><div class="gmail_quote">Christopher Cope <ccope3@utk.edu> wrote:<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

The way I set it was to enable with the original labels or absolute label with relative mode. My mouse has absolute labels, but with relative mode set. My mouse won't work correctly without this patch. Relative and absolute mode can be set relatively easily.<br /><br /><div class="gmail_quote">Alexandre Julliard <julliard@winehq.org> wrote:<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<pre style="white-space: pre-wrap; word-wrap:break-word; font-family: sans-serif; margin-top: 0px">Christopher Cope <ccope3@utk.edu> writes:<br /><br /><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #729fcf; padding-left: 1ex;">@@ -286,8 +286,10 @@ static void enable_xinput2(void)<br />class->number, class->min, class->max, class->resolution, class->mode,<br />XGetAtomName( data->display, class->label ));<br />if (class->label == x11drv_atom( Rel_X ) || class->label == x11drv_atom( Rel_Y )) count++;<br />-            /* workaround for drivers that don't provide labels */<br />-            if (!class->label && class->number <= 1 && class->mode == XIModeRelative) count++;<br />+            /* workaround for drivers that don't provide correct labels */<br />+            if (((!class->label && class->number <= 1) || class->label ==
x11drv_atom( Abs_X ) ||<br />+    
           class->label == x11drv_atom( Abs_Y ))<br />+                && class->mode == XIModeRelative) count++;</blockquote><br />The whole point of testing labels was because some platforms don't set<br />the relative mode correctly, so this is going to break them again.<br /></pre></blockquote></div></blockquote></div></body></html></body></html>