mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-08-27 03:42:49 +00:00
When closing a kitty window reset the mouse cursor to its default shape and ensure it is visible. Fixes #655
This commit is contained in:
parent
4c0f68150a
commit
5e38af6d24
1 changed files with 3 additions and 0 deletions
|
|
@ -515,6 +515,9 @@ create_os_window(PyObject UNUSED *self, PyObject *args) {
|
|||
void
|
||||
destroy_os_window(OSWindow *w) {
|
||||
if (w->handle) {
|
||||
// Ensure mouse cursor is visible and reset to default shape, needed on macOS
|
||||
show_mouse_cursor(w->handle);
|
||||
glfwSetCursor(w->handle, NULL);
|
||||
glfwDestroyWindow(w->handle);
|
||||
if (current_os_window_ctx == w->handle) current_os_window_ctx = NULL;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue