Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
glfw - Fix hidden cursor on re-focus and window repaint
* Related bug report: ScenicFramework/scenic#324 * On some Window managers (e.g. CTWM) the window is not repainted when another window is moved over it. Add `refresh_window_callback` and "redraw" (reuse `reshape_window` for now...). * At least on Hikari (Wayland), when the cursor leaves the window and re-enters the window, the cusor was no longer visible. This commit fixes this issue by adding a `focus_window_callback` and explicitly setting the cursor when focus is regained. * NOTE: This might (or might not) show a cursor where no cursor is wanted (touch-screen devices?). To fix this, the `glfwSetCusor` and `glfwSetInputMode` calls in `focus_window_callback` should be conditionalized by a global per-device setting, whether a cursor is desired or not.
- Loading branch information