return nil;
}
NSApp = self; // NSApp is used EVERYWHERE! Set it right now!
+
+ /* Set the process to be a foreground process,
+ * without that it prevents the window to become the key window and
+ * receive all mouse mouve events. */
+ [NSApp setActivationPolicy:NSApplicationActivationPolicyRegular];
+ [NSApp activateIgnoringOtherApps:YES];
+
return NSApp;
}
styleMask:style
backing:NSBackingStoreBuffered
defer:NO];
-
if (EINA_UNLIKELY(!window))
{
CRI("Failed to create EcoreCocoaWindow");
return NULL;
}
- //Set the process to be a foreground process,
- //without that it prevents the window to become the key window and
- //receive all mouse mouve events.
- [NSApp setActivationPolicy:NSApplicationActivationPolicyRegular];
- [NSApp activateIgnoringOtherApps:YES];
-
-
w = calloc(1, sizeof(Ecore_Cocoa_Window));
if (EINA_UNLIKELY(w == NULL))
{