This commit is contained in:
Hartmut Seichter 2020-12-02 15:22:39 +01:00
parent 0cd3c99119
commit bf41ce9544
3 changed files with 10 additions and 3 deletions

View file

@ -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,

View file

@ -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"

View file

@ -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