Mouse events on Mac OS X 10.4 Tiger
In Mac OS X 10.4, Apple changed some default behaviors in X11 that impact IDL functionality. When processing mouse events with this new behavior, a !MOUSE structure is returned that contains incorrect information. In some instances, focus can remain stuck on a window, despite subsequent window commands.
For example, if you type these consecutive commands at the IDL command line:
The plot window does not get focus after the ZOOM command. The command locks up IDL because any attempt to click on the plot window, in order to tell ZOOM where to zoom, is thwarted because the window manager is swallowing the focus click.
Workaround: The solution is to change the X11 start-up parameters as follows:
- Open an xterm by launching the X11.app file located in /Applications/Utilities
- Type the following command at the prompt:
defaults write com.apple.x11 wm_click_through -bool true
Typing this command at the X11 prompt will change the default for all subsequent X11 sessions. You must restart X11 for this to take effect.