diff --git a/src/deps/glfw-3.3.2/src/x11_window.c b/src/deps/glfw-3.3.2/src/x11_window.c index 271e108..0ce23d2 100644 --- a/src/deps/glfw-3.3.2/src/x11_window.c +++ b/src/deps/glfw-3.3.2/src/x11_window.c @@ -1557,7 +1557,7 @@ static void processEvent(XEvent *event) // the position into root (screen) coordinates if (!event->xany.send_event && window->x11.parent != _glfw.x11.root) { - Window dummy; + Window dummy = 0; XTranslateCoordinates(_glfw.x11.display, window->x11.parent, _glfw.x11.root, diff --git a/src/scripts/demos/simple_000.lua b/src/scripts/demos/simple_000.lua index 9d3f706..a5eec50 100644 --- a/src/scripts/demos/simple_000.lua +++ b/src/scripts/demos/simple_000.lua @@ -8,7 +8,7 @@ pw.script:load_all() print("hello pixwerx!") local w = pw.window.new() -w.visible = false +--w.visible = false -- set title w.title = "pixwerx 0.1" diff --git a/src/system/src/window.cpp b/src/system/src/window.cpp index 002735a..7cf78d0 100644 --- a/src/system/src/window.cpp +++ b/src/system/src/window.cpp @@ -146,8 +146,16 @@ struct window::impl { if (!glfwInit()) { debug::e() << "Initalization error"; + } + int glfw_major, glfx_minor,glfw_rev; + glfwGetVersion(&glfw_major,&glfx_minor,&glfw_rev); + + + debug::d() << "GLFW " << glfw_major << "." << glfx_minor << "." << glfw_rev; + debug::d() << "GLFW header " << GLFW_VERSION_MAJOR << "." << GLFW_VERSION_MINOR << "." << GLFW_VERSION_REVISION; + update_display_list(); // request specific version 3.3 @@ -206,7 +214,6 @@ struct window::impl { { if (_window && !glfwWindowShouldClose(_window)) { - input::get().reset(); // get new events