It seems that sometimes calling toggleFullScreen will cause the display_layer callback of a different window to fire.
gpui