mirror of
https://github.com/glfw/glfw.git
synced 2026-09-20 16:30:45 +00:00
Added blank cursor creation error checking on X11.
This commit is contained in:
+3
-1
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user