Blender Git Loki

Git Commits -> Revision e4882e3

Revision e4882e3 by Damien Plisson (master)
January 28, 2010, 19:18 (GMT)
Cocoa : correctly handle late events sent after window deactivate

Cocoa can still send events (tagged with the correct NSWindow handle) after having sent the window deactivate event.
This caused these events being discarded as there was no active window for GHOST_WindowManager.

Fix is to use this NSWindow handle to retrieve the target window and correctly push the event.

E.g. of effects of this bug: OSKey modifier stuck after having invoked Spotlight through its shortcut (Cmd + Space). This gave the impression the Blender window has not got focus back for the keyboard.

Ton, can you confirm if this fixes the "Cocoa window loses focus permanently on using Spotlight" issue you found ?

Commit Details:

Full Hash: e4882e3da2ed7af07dc5f3dc139d784b5337a796
SVN Revision: 26375
Parent Commit: cd2c4a5
Lines Changed: +70, -8

8 Modified Paths:

/intern/ghost/GHOST_IWindow.h (+6, -0) (Diff)
/intern/ghost/intern/GHOST_SystemCocoa.mm (+24, -7) (Diff)
/intern/ghost/intern/GHOST_Window.cpp (+4, -0) (Diff)
/intern/ghost/intern/GHOST_Window.h (+6, -0) (Diff)
/intern/ghost/intern/GHOST_WindowCocoa.h (+6, -0) (Diff)
/intern/ghost/intern/GHOST_WindowCocoa.mm (+4, -0) (Diff)
/intern/ghost/intern/GHOST_WindowManager.cpp (+12, -0) (Diff)
/intern/ghost/intern/GHOST_WindowManager.h (+8, -1) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021