window: Don't focus invisible widgets
authorMatthias Clasen <mclasen@redhat.com>
Mon, 17 Oct 2022 19:10:51 +0000 (15:10 -0400)
committerMat <mail@mathias.is>
Tue, 18 Oct 2022 17:37:19 +0000 (20:37 +0300)
commita0d85f36abce9e06acdb993f155a01c62fef33b1
treeafd9f2f0cef4be27c33e858dbe8c1cd0d623feb3
parent8455b9ac74d5337429a1a14ebbc792d760651699
window: Don't focus invisible widgets

Only clear a queued move_focus if the widget
we are focusing is actually visible.

This was happening in some cases when popovers
are dismissed by clicking outside, and it was
causing us to miss proper focus updates that
were already queued.
gtk/gtkwindow.c