summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Sixt <j6t@kdbg.org>2025-08-26 19:22:08 +0200
committerJohannes Sixt <j6t@kdbg.org>2025-08-26 19:22:08 +0200
commitbe1829c0fd55ae2f7851c0c610c716cc5154dc5c (patch)
treea43f1df8d585cde3a4779b8ca6b2c58de245d874
parent93ff79ed417e8d1afa770b31721ad3640ed2d0ad (diff)
parent7c06c19e66e7654031eb50b72fd79c380fa54158 (diff)
Merge branch 'aqua-ctxbut' of github.com:ZhongRuoyu/gitk
* 'aqua-ctxbut' of github.com:ZhongRuoyu/gitk: gitk: use <Button-3> for ctx menus on macOS with Tcl 8.7+ Signed-off-by: Johannes Sixt <j6t@kdbg.org>
-rwxr-xr-xgitk2
1 files changed, 1 insertions, 1 deletions
diff --git a/gitk b/gitk
index 3b6acfc592..2e1b629d7d 100755
--- a/gitk
+++ b/gitk
@@ -12596,7 +12596,7 @@ set foundbgcolor yellow
set currentsearchhitbgcolor orange
# button for popping up context menus
-if {[tk windowingsystem] eq "aqua"} {
+if {[tk windowingsystem] eq "aqua" && [package vcompare $::tcl_version 8.7] < 0} {
set ctxbut <Button-2>
} else {
set ctxbut <Button-3>