window: Fix focus updates
authorMatthias Clasen <mclasen@redhat.com>
Mon, 17 Oct 2022 16:29:44 +0000 (12:29 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 17 Oct 2022 19:10:41 +0000 (15:10 -0400)
commit100605ef0c7997f378cb889a1290cb6ea23a051b
tree7e51f355bcece6add73e0b64a5a44554ae87dc05
parent6f5d18a9f5c5ce28ed3bed98365967565dfa8b94
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