Skip to content

Commit c204d33

Browse files
committed
[highgui] change window.isopen
1 parent 31a4611 commit c204d33

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/src/highgui/highgui.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,8 @@ class Window {
153153
String name;
154154
// https://stackoverflow.com/a/48055987/18539998
155155
bool get isOpen {
156-
final ret = getWindowProperty(WindowPropertyFlags.WND_PROP_AUTOSIZE).toInt();
157-
return ret != -1;
156+
final ret = getWindowProperty(WindowPropertyFlags.WND_PROP_VISIBLE).toInt();
157+
return ret != 0;
158158
}
159159
}
160160

0 commit comments

Comments
 (0)