summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xgitk9
1 files changed, 9 insertions, 0 deletions
diff --git a/gitk b/gitk
index 22a05b0373..5cd00d80fe 100755
--- a/gitk
+++ b/gitk
@@ -11751,6 +11751,15 @@ if {[catch {package require Tk 8.4} err]} {
exit 1
}
+# on OSX bring the current Wish process window to front
+if {[tk windowingsystem] eq "aqua"} {
+ exec osascript -e [format {
+ tell application "System Events"
+ set frontmost of processes whose unix id is %d to true
+ end tell
+ } [pid] ]
+}
+
# Unset GIT_TRACE var if set
if { [info exists ::env(GIT_TRACE)] } {
unset ::env(GIT_TRACE)