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>
Sat, 15 Apr 2023 12:58:57 +0000 (14:58 +0200)
commitd90cb025706011ecb66ef9074518b93167a65eeb
tree5b504f35422c53c5ce1fbaf98d7f1539b9d46f5e
parent60f3cc398a5b14a0fb77afb79cf5de9e83c60a5d
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