[gtk+] [broadway] Fix up toplevel content visibility in useToplevel mode



commit e5d8905cd217b73110940a039db3025456e14163
Author: Alexander Larsson <alexl redhat com>
Date:   Fri Apr 8 15:16:32 2011 +0200

    [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.

 gdk/broadway/broadway.js |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gdk/broadway/broadway.js b/gdk/broadway/broadway.js
index 83e2b28..8382771 100644
--- a/gdk/broadway/broadway.js
+++ b/gdk/broadway/broadway.js
@@ -433,6 +433,7 @@ function cmdShowSurface(id)
 	}
 
 	ensureSurfaceInDocument(surface, doc);
+	element = surface.canvas;
     } else {
 	if (surface.frame) {
 	    element = surface.frame;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]