[client] mouse: window enter should not enable drawing the cursor

The pointer may not yet be in the view area so we should defer drawing
it until the mouse move handler determines that it's inside the view
area and turn it on itself.
This commit is contained in:
Geoffrey McRae 2021-01-16 19:51:26 +11:00
parent dc3d07302f
commit f18f07deaf

View File

@ -1174,7 +1174,6 @@ void app_handleWindowLeave(void)
if (!params.alwaysShowCursor)
g_cursor.draw = false;
g_cursor.redraw = true;
}
@ -1183,9 +1182,6 @@ void app_handleWindowEnter(void)
g_cursor.inWindow = true;
if (!app_inputEnabled())
return;
g_cursor.draw = true;
g_cursor.redraw = true;
}
static void setGrab(bool enable)