Defer widget creation until surface has come content.
A shell surface widget needs be created when the surface has a content, (https://cs.chromium.org/chromium/src/components/exo/shell_surface.cc?rcl=63840f211efada36274cae7ade3003a2dc88c74b&l=475) but it can be created without content if a client requested maximize/fullscreen/minimize state upon creation. This is necessary since xdg (or gtk3 wayland client) seems to have an issue if we configure before the content is created, and it stops updating frames, even if we sends new configure events later. Bug: 892291 Test: Covered by unit tests. Also tested manually. See bug for repro step. Change-Id: I115ec6540a0ec2fc5258c020bd05c4be623f85da Reviewed-on: https://chromium-review.googlesource.com/c/1278986 Commit-Queue: Mitsuru Oshima <oshima@chromium.org> Reviewed-by:Daniele Castagna <dcastagna@chromium.org> Cr-Commit-Position: refs/heads/master@{#601382}
Showing
Please register or sign in to comment