Here is the nasty bug report about gitk stealing the focus, at some point. 1) start gitk maximized, and run a small window (terminal). 2) Now focus the gitk window and keep the mouse pointed out of the terminal window. 3) Cycle to the terminal with Alt+Tab. 4) Maximize the terminal with Alt+F10. The terminal loses the focus, stolen by gitk.
Rev. 27077 should fix this.
ACK However with "Focus follow mouse", when you restore a window and the mouse is outside its original geometry over another window, the window under the mouse will get the focus. Should it be reported as well?
This is the expected behavior, focus goes where the mouse resides in focus follow mode.