[PATCH v10 1/9] user32: Add support for RIDEV_NOLEGACY flag.

Rémi Bernon rbernon at codeweavers.com
Mon Aug 5 02:23:33 CDT 2019


On 8/5/19 6:57 AM, Derek Lesho wrote:
> I could, but then if Julliard wanted to pull in this patch without the
> others he'd have to perform a rebase.
> 
> On Fri, Aug 2, 2019 at 4:20 AM Rémi Bernon <rbernon at codeweavers.com> wrote:
>>
>> You could probably move this after PATCH 5/9, so that you don't have to
>> change those lines again.
>> --
>> Rémi Bernon <rbernon at codeweavers.com>
>>
>>

I think if you do

          msg_data->rawinput.mouse.data = input->mouse.data;

          queue_hardware_message( desktop, msg, 0 );
      }

+    if (device && device->flags & RIDEV_NOLEGACY)
+        return FALSE;

      for (i = 0; i < ARRAY_SIZE( messages ); i++)

instead of

          msg_data->rawinput.mouse.data = input->mouse.data;

          queue_hardware_message( desktop, msg, 0 );
+
+        if (device->flags & RIDEV_NOLEGACY)
+            return FALSE;
      }

      for (i = 0; i < ARRAY_SIZE( messages ); i++)

then it would work the same for this patch (even if you keep it first in 
the serie), and you will not have to change it again later on.
-- 
Rémi Bernon <rbernon at codeweavers.com>



More information about the wine-devel mailing list