mirror of
https://github.com/gwm17/glfw.git
synced 2025-02-18 11:38:51 -05:00
Formatting.
This commit is contained in:
parent
3d6221c490
commit
208b7f0bb8
|
@ -468,7 +468,7 @@ static _GLFWwindow* findWindow(Window handle)
|
||||||
// Get and process next X event (called by _glfwPlatformPollEvents)
|
// Get and process next X event (called by _glfwPlatformPollEvents)
|
||||||
//========================================================================
|
//========================================================================
|
||||||
|
|
||||||
static void processSingleEvent(XEvent *event)
|
static void processEvent(XEvent *event)
|
||||||
{
|
{
|
||||||
_GLFWwindow* window;
|
_GLFWwindow* window;
|
||||||
|
|
||||||
|
@ -1144,9 +1144,12 @@ void _glfwPlatformRefreshWindowParams(_GLFWwindow* window)
|
||||||
void _glfwPlatformPollEvents(void)
|
void _glfwPlatformPollEvents(void)
|
||||||
{
|
{
|
||||||
XEvent event;
|
XEvent event;
|
||||||
|
|
||||||
while (XCheckMaskEvent(_glfwLibrary.X11.display, ~0, &event) ||
|
while (XCheckMaskEvent(_glfwLibrary.X11.display, ~0, &event) ||
|
||||||
XCheckTypedEvent(_glfwLibrary.X11.display, ClientMessage, &event))
|
XCheckTypedEvent(_glfwLibrary.X11.display, ClientMessage, &event))
|
||||||
processSingleEvent(&event);
|
{
|
||||||
|
processEvent(&event);
|
||||||
|
}
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
// Did the cursor move in an active window that has captured the cursor
|
// Did the cursor move in an active window that has captured the cursor
|
||||||
|
|
Loading…
Reference in New Issue
Block a user