Skip to content

Commit f3d0b53

Browse files
committed
Fix window.shouldClose
1 parent 3439002 commit f3d0b53

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

js/window.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ class Window extends EventEmitter {
384384
}
385385

386386
get shouldClose() { return glfw.windowShouldClose(this._window); }
387-
set shouldClose(v) { glfw.setWindowShouldClose(v); }
387+
set shouldClose(v) { glfw.setWindowShouldClose(this._window, v ? glfw.TRUE : glfw.FALSE); }
388388

389389
get platformDevice() { return glfw.platformDevice(); }
390390
get platformWindow() { return glfw.platformWindow(this._window); }

package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"author": "Luis Blanco <[email protected]>",
33
"name": "glfw-raub",
4-
"version": "5.4.0",
4+
"version": "5.4.1",
55
"description": "GLFW for Node.js",
66
"license": "MIT",
77
"main": "index.js",

0 commit comments

Comments
 (0)