[PATCH] gitk: Handle MouseWheel events on Windows
commit314c30936f505f70534c619a48d99afb93451cb2
authorMark Levedahl <mdl123@verizon.net>
Wed, 8 Aug 2007 01:40:35 +0000 (7 21:40 -0400)
committerPaul Mackerras <paulus@samba.org>
Sun, 12 Aug 2007 07:30:56 +0000 (12 17:30 +1000)
treea999907544b2073b07799050344ea1df6514e823
parentbd441de4df68c4144425b1c18d323fd90f3f9617
[PATCH] gitk: Handle MouseWheel events on Windows

Windows, unlike X-Windows, sends mousewheel events by default to the
window that has keyboard focus and uses the MouseWheel event to do so.
The window to be scrolled must be able to take focus, but gitk's panels
are disabled so cannot take focus.  For all these reasons, a different
design is needed to use the mousewheel on Windows.  The approach here is
to bind the mousewheel events to the top level window and redirect them
based upon the current mouse position.

Signed-off-by: Mark Levedahl <mdl123@verizon.net>
Signed-off-by: Paul Mackerras <paulus@samba.org>
gitk