Browse Source

Fix events when using file-dialog

gh-pages
falkTX 10 years ago
parent
commit
a23c1f99fd
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      dgl/src/pugl/pugl_x11.c

+ 6
- 0
dgl/src/pugl/pugl_x11.c View File

@@ -203,6 +203,8 @@ puglDestroy(PuglView* view)
return;
}

x_fib_close(view->impl->display);

glXDestroyContext(view->impl->display, view->impl->ctx);
XDestroyWindow(view->impl->display, view->impl->win);
XCloseDisplay(view->impl->display);
@@ -346,6 +348,10 @@ puglProcessEvents(PuglView* view)
break;
}

if (event.xany.window != view->impl->win) {
continue;
}

switch (event.type) {
case MapNotify:
puglReshape(view, view->width, view->height);


Loading…
Cancel
Save