OK, it is racy: The problem arises when the advise_focus() event happens before the titlebar surface has been created.
(There is code that purports to handle this, but it obviously doesn't anymore.)
OK, it is racy: The problem arises when the advise_focus() event happens before the titlebar surface has been created.
(There is code that purports to handle this, but it obviously doesn't anymore.)