| Ticket UUID: | 2926819 | |||
| Title: | event generate -warp 1 doesn't work on Mac OSX Aqua | |||
| Type: | Bug | Version: | None | |
| Submitter: | auriocus | Created on: | 2010-01-06 10:55:52 | |
| Subsystem: | 69. Events | Assigned To: | das | |
| Priority: | 5 Medium | Severity: | ||
| Status: | Closed | Last Modified: | 2010-01-06 22:02:28 | |
| Resolution: | Fixed | Closed By: | dkf | |
| Closed on: | 2010-01-06 15:02:28 | |||
| Description: |
In the Aqua build of Tk, warping the pointer doesn't work in either 8.5.8 or 8.6b1. SImple script to reproduce:
package require Tk
bind . <1> { puts "Yes"; event generate . <Motion> -warp 1 -x 5 -y 5 }
in X11/MacOS, this warps the pointer as expected when clicking anywhere in the main window. This functionality is needed e.g. for a 3D game, where the pointer is hidden and only the motion is tracked.
| |||
| User Comments: |
dkf added on 2010-01-06 22:02:28:
allow_comments - 1 Fixed for HEAD. It's a bit of an intrusive fix though (needed a change to the global TkDisplay structure) so I'm not going to backport. (DAS: if you want to backport, note that you want CGPostMouseEvent and not CGWarpMouseCursorPosition; odd things happen if you use the wrong one.) | |||
Home
Timeline
Branches
Tags
Forum
Tickets
Download
Wiki