Switch focus between Firefox and another application window and observe the titlebar active appearance. Instead of gaining active appearance when the window becomes focused it switches to inactive appearance and vice versa when losing focus. Moving the mouse cursor over the titlebar updates the active appearance to the correct state. Regressed by Bug 1497534 Ubuntu 18.10 with default Yaru theme.
Okay, will look at it. I wonder if the backdrop state change is slower that the focus one and the titlebar widget is rendered before main window state is updated by Gtk.
Assignee: nobody → stransky
Yes, I see that even on Fedora. When the application switch is fast, the firefox window is not repainted. I suspect it's something with event routing, when I log events at nsWindow::OnWindowStateEvent() the focus is correctly received from Gtk but the titlebar does not react on that.
Pushed by email@example.com: https://hg.mozilla.org/integration/autoland/rev/bf1a01ae1faa [Linux/Gtk] Use NS_DOCUMENT_STATE_WINDOW_INACTIVE to set titlebar state, r=jhorak
Flags: needinfo?(ke5trel) → needinfo?(maria.berlinger)
You need to log in before you can comment on or make changes to this bug.