forked from AuroraMiddleware/gtk
[broadway] Fix up toplevel content visibility in useToplevel mode
surfaces.canvas may change if we move to another document, so reupdate the element to show after ensureSurfaceInDocument.
This commit is contained in:
parent
fadaced85f
commit
e5d8905cd2
@ -433,6 +433,7 @@ function cmdShowSurface(id)
|
||||
}
|
||||
|
||||
ensureSurfaceInDocument(surface, doc);
|
||||
element = surface.canvas;
|
||||
} else {
|
||||
if (surface.frame) {
|
||||
element = surface.frame;
|
||||
|
Loading…
Reference in New Issue
Block a user