Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/torch/image.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNeil Z. SHAO <initialneil@gmail.com>2015-11-27 06:52:33 +0300
committerNeil Z. SHAO <initialneil@gmail.com>2015-11-27 06:52:33 +0300
commit003380cd07c818088c78fefd3ee71e323203094e (patch)
tree752a57adddad2812323e6d34528bc945927f1743
parent0e43c1e96bd3c8cf10158c9bcc32f21775bb7276 (diff)
check given window visible
for given window to display, make sure the window is visible
-rw-r--r--init.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/init.lua b/init.lua
index a2f4187..64fb604 100644
--- a/init.lua
+++ b/init.lua
@@ -1385,6 +1385,10 @@ local function display(...)
else
w = w or qtwidget.newwindow(x,y,legend)
end
+ if w.window and not w.window.visible then
+ -- make sure window is visible
+ w.window.visible = true
+ end
if w.isclosure then
-- window was created with gui, just update closure
local closure = w