window: Fix focus updates
authorMatthias Clasen <mclasen@redhat.com>
Mon, 17 Oct 2022 16:29:44 +0000 (12:29 -0400)
committerMat <mail@mathias.is>
Tue, 18 Oct 2022 17:37:05 +0000 (20:37 +0300)
commit8455b9ac74d5337429a1a14ebbc792d760651699
tree0ea8f6f159c3e5fbd6417beb0295adbd38c0ceb1
parente87801f7e60ce0543487ebd700640d745f727fdb
window: Fix focus updates

This partially undoes changes from 3dbf5038fab8eb0.

That commit did two things:
1) Move the focus update to after-paint time
2) Change from grabbing focus to the visible parent
   to  calling move_focus (TAB)

The second part did have the unintended consequence
of moving focus laterally.

Fixes: #4903
gtk/gtkwindow.c