From: Michael Rappazzo <rappazzo@gmail.com>
To: git@vger.kernel.org
Cc: j6t@kdbg.org, Michael Rappazzo <rappazzo@gmail.com>
Subject: [PATCH v2 1/2] gitk: fix the position of the main main window on initialize
Date: Sat, 20 Sep 2025 14:40:06 -0400 [thread overview]
Message-ID: <20250920184007.26183-2-rappazzo@gmail.com> (raw)
In-Reply-To: <20250920184007.26183-1-rappazzo@gmail.com>
The main window geometry was only restoring size but not position.
Use after idle to ensure proper timing on OS's where that is necessary.
Signed-off-by: Michael Rappazzo <rappazzo@gmail.com>
---
gitk | 2 ++
1 file changed, 2 insertions(+)
diff --git a/gitk b/gitk
index 6e4d71d585..95469a8fae 100755
--- a/gitk
+++ b/gitk
@@ -2775,6 +2775,8 @@ proc makewindow {} {
}
wm geometry . "${w}x$h"
}
+ # Restore full geometry including position after window is mapped
+ after idle [list wm geometry . $geometry(main)]
}
if {[info exists geometry(state)] && $geometry(state) eq "zoomed"} {
--
2.51.0
next prev parent reply other threads:[~2025-09-20 18:40 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-20 18:40 [PATCH v2 0/2] gitk: make the 'Tags and Heads' window geometry sticky Michael Rappazzo
2025-09-20 18:40 ` Michael Rappazzo [this message]
2025-09-22 6:00 ` [PATCH v2 1/2] gitk: fix the position of the main main window on initialize Johannes Sixt
2025-09-22 10:16 ` Mark Levedahl
2025-09-20 18:40 ` [PATCH v2 2/2] gitk: make Tags and Heads window geometry sticky Michael Rappazzo
2025-09-22 6:34 ` Johannes Sixt
2025-09-25 12:45 ` Mike Rappazzo
2025-09-28 13:30 ` Mike Rappazzo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250920184007.26183-2-rappazzo@gmail.com \
--to=rappazzo@gmail.com \
--cc=git@vger.kernel.org \
--cc=j6t@kdbg.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).