[aseprite] 170/308: Make main window key and order to front in Skia/OSX port

Tobias Hansen thansen at moszumanska.debian.org
Tue Mar 8 02:45:07 UTC 2016


This is an automated email from the git hooks/post-receive script.

thansen pushed a commit to branch master
in repository aseprite.

commit a5a044f33377a70df6b90d852254a9078381a42a
Author: David Capello <davidcapello at gmail.com>
Date:   Mon Dec 28 18:33:57 2015 -0300

    Make main window key and order to front in Skia/OSX port
---
 src/she/osx/app.mm    | 1 +
 src/she/osx/window.mm | 1 +
 2 files changed, 2 insertions(+)

diff --git a/src/she/osx/app.mm b/src/she/osx/app.mm
index 5547979..2f537cf 100644
--- a/src/she/osx/app.mm
+++ b/src/she/osx/app.mm
@@ -38,6 +38,7 @@ int OSXApp::run(int argc, char* argv[])
 
   [app setActivationPolicy:NSApplicationActivationPolicyRegular];
   [app setDelegate:appDelegate];
+  [app activateIgnoringOtherApps:YES];
 
   app_main(argc, argv);
   return 0;
diff --git a/src/she/osx/window.mm b/src/she/osx/window.mm
index f856abe..9c4982d 100644
--- a/src/she/osx/window.mm
+++ b/src/she/osx/window.mm
@@ -49,6 +49,7 @@ using namespace she;
   [self setDelegate:m_delegate];
   [self setContentView:view];
   [self center];
+  [self makeKeyAndOrderFront:self];
 
   return self;
 }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/aseprite.git



More information about the Pkg-games-commits mailing list