Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Plisson <damien.plisson@yahoo.fr>2010-01-28 22:18:36 +0300
committerDamien Plisson <damien.plisson@yahoo.fr>2010-01-28 22:18:36 +0300
commite4882e3da2ed7af07dc5f3dc139d784b5337a796 (patch)
treed1aed31ce80895ca03296f7b112276036dccff37 /intern/ghost/GHOST_IWindow.h
parentcd2c4a58345dfabf88e985b6aca5f259168f628e (diff)
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 ?
Diffstat (limited to 'intern/ghost/GHOST_IWindow.h')
-rw-r--r--intern/ghost/GHOST_IWindow.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/intern/ghost/GHOST_IWindow.h b/intern/ghost/GHOST_IWindow.h
index 5d1e0a67e7e..2bb446c229c 100644
--- a/intern/ghost/GHOST_IWindow.h
+++ b/intern/ghost/GHOST_IWindow.h
@@ -73,6 +73,12 @@ public:
virtual bool getValid() const = 0;
/**
+ * Returns the associated OS object/handle
+ * @return The associated OS object/handle
+ */
+ virtual void* getOSWindow() const = 0;
+
+ /**
* Returns the type of drawing context used in this window.
* @return The current type of drawing context.
*/