https://bugs.winehq.org/show_bug.cgi?id=42897
--- Comment #1 from Mildred mildred-bug.winehq@mildred.fr --- Created attachment 58031 --> https://bugs.winehq.org/attachment.cgi?id=58031 Log with WINEDEBUG=+cursor with a left click followed by trackpad right click first and real mouse right click last
Attached a log file with WINEDEBUG=+cursor with the two clicks. First the trackpad right click, then the mouse right click.
The lines are easy to find by locating the strings "ButtonPress" and "ButtonRelease"
The first click with the trackpad looks like:
trace:cursor:X11DRV_ButtonPress hwnd 0x1007c/2e00001 button 2 pos 464,432 trace:cursor:X11DRV_EnterNotify hwnd 0x1007c/2e00001 pos 464,432 detail 2 trace:cursor:X11DRV_ButtonRelease hwnd 0x1007c/2e00001 button 2 pos 464,432
The second click with the real mouse looks like:
trace:cursor:X11DRV_ButtonPress hwnd 0x1007c/2e00001 button 2 pos 464,432 trace:cursor:X11DRV_EnterNotify hwnd 0x1007c/2e00001 pos 464,432 detail 2 trace:cursor:SetCursor 0x10056 ... trace:cursor:X11DRV_GetCursorPos pointer at (464,432) server pos (464,432) trace:cursor:SetCursor 0x10056 trace:cursor:X11DRV_ButtonRelease hwnd 0x1007c/2e00001 button 2 pos 464,432
There are many more events with the real mouse. This may be caused by the fact that this is a real mouse, or that the click was correctly handled by the application and resulted in a screen refresh. The clock was made on the main menu background and no visible change was noticed before and after the click. But it is entirely possible that the right-click was taken as a way to go back to the main menu. because the main menu was already shown, nothing changed on screen.
As for the Press, EnterNotify and Release events, it seems that they are identical. Which doesn't help to see what's wrong with the trackpad and why it is not recognized.