Added blank cursor creation error checking on X11.

This commit is contained in:
siavash
2013-07-09 21:08:21 +04:30
parent 763ec6cbcb
commit 3b4eb2f0a0
3 changed files with 30 additions and 12 deletions
+3 -1
View File
@@ -553,7 +553,7 @@ static Cursor createNULLCursor(void)
XColor col;
Cursor cursor;
// TODO: Add error checks
_glfwGrabXErrorHandler();
cursormask = XCreatePixmap(_glfw.x11.display, _glfw.x11.root, 1, 1, 1);
xgc.function = GXclear;
@@ -568,6 +568,8 @@ static Cursor createNULLCursor(void)
XFreePixmap(_glfw.x11.display, cursormask);
XFreeGC(_glfw.x11.display, gc);
_glfwReleaseXErrorHandler();
return cursor;
}