Button-release event

"Richard Warren" <[email protected]> Mon, 7 Apr 2003 12:06:58 +0100
Newsgroups gmane.comp.video.gimp.windows.devel
Organization Primagraphics Ltd.
Message-ID <02cc01c2fcf5$cea4f760$3d00a8c0@primag>
Hi all,

I think I'm getting a difference in the notification of button-release
events between Linux and Win32 builds of my application.

I have a drawing-area in which I use the button_press_event,
button_release_event and motion_notify_event events (to implement a zooming
feature by dragging a rubber-band rectangle over the area to zoom in on).

Under linux, if I press down on the button, then accidentally drag to
outside of my drawing area before releasing the button, I still get the
button_release_event, regardless of where I release the button.

Under windows, if I do the same thing then I don't get the
button_release_event if I let go of the mouse button when the cursor is over
a widget that can receive the focus (e.g. buttons, radio buttons etc.).  If
I let go over a plain label or unused part of the application then I get the
event okay, but if I'm over a focus-able widget I don't get anything.

So, am I doing something stupid?  Should I expect this difference between
linux and windows?

I'm using V2.2.0 on linux, and Tor's 2003-01-09 build (also V2.2.0 I think)
on windows.

I'm happy to file a bug if this difference is not-expected, but I thought
I'd just run it past you all first in case it's my fault!

Thanks in advance,
Richard Warren.