window: Don't mark widget prematurely as has-focus
authorMatthias Clasen <mclasen@redhat.com>
Sat, 15 Apr 2023 12:58:57 +0000 (14:58 +0200)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 21 Apr 2023 07:20:44 +0000 (09:20 +0200)
commit47070e56630f34a81f6c38a54afa129a492070c1
tree98c2ca0a1fa76067fde285bf39d6e6ef2772b487
parent8c1e61d54cbc13c7b784c9e11e12f2e4994b5809
window: Don't mark widget prematurely as has-focus

has-focus is defined is-focus && toplevel::is-active.
We were forgetting to look at is_active when handling
focus widget changes.
gtk/gtkwindow.c