Right button clicks

Andreas Mohr andi at rhlx01.fht-esslingen.de
Fri Aug 16 16:22:55 CDT 2002


On Fri, Aug 16, 2002 at 11:34:07AM +0200, Fabian Cenedese wrote:
> Hi
> 
> Does Wine support right mouse button double clicks? I have an App with
> a dialog (in fact an overridden MFC CDialog for about infos) in which I can
> double click with the right mouse button to show some additional info. But
> they never show up. After +relay tracing the messages I found that only
> WM_RBUTTONDOWN and WM_RBUTTONUP messages are generated,
> none of them get converted into clicks or even double clicks, no matter
> how fast I click. Does anyone have an idea?
Hmm, strange.
Right button double clicks should work, since Wine does
./windows/message.c:               msg->message += (WM_LBUTTONDBLCLK - WM_LBUTTONDOWN);
a relative statement to support *all* kinds of mouse buttons with double
clicks.
However, since a right button double click is rather "rare", I'd be tempted to
think that I'm missing some parts of the picture and Wine does indeed have
a bug here for right buttons.
Try using something like --debugmsg +relay,+msg,+message,+cursor,+x11drv,+event
to find out why a double click doesn't get generated (I assume a double
WM_RBUTTONDOWN/UP gets generated instead of a WM_RBUTTONDBLCLK).
Interesting files would be e.g. windows/message.c, dlls/x11drv/mouse.c,
dlls/x11drv/event.c and maybe also windows/input.c
Add some TRACEs there if needed, to find out why it doesn't want to do
what you want it to do :-)

Good luck !

-- 
"My attitude is, everybody should try competing with Microsoft once in their life. Once."
- Marc Andreessen, former Netscape lead employee, in a "browser wars" interview



More information about the wine-devel mailing list