sdl2_frt/src
Sam Lantinga 5a6f4d4051 Fixed bug 2485 - [PATCH] Wayland: cursor disappears permanently after window loses mouse focus
Bryan Cain

Using any SDL application with the Wayland backend under Weston, if the application sets a cursor with SDL_SetCursor, the cursor will work until the mouse pointer leaves the window.  When the pointer re-enters the window, there will be no cursor displayed at all.

I did some digging, and the reason for this is that SDL attaches the buffer to the cursor surface only once (during cursor creation) and assumes that it will stay attached.  This is not how Wayland works, though - once the compositor is done rendering the buffer, it will release it, so it is no longer attached to the surface.  When the cursor re-enters the window a second time, SDL sets the cursor to the same surface with no buffer attached, so no cursor is displayed.

This is fixed by the attached patch, which makes SDL attach the buffer to the surface when the cursor is set, not when it is created.
2014-04-17 20:51:28 -07:00
..
atomic Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
audio Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
core Fixed bug 2477 - [PATCH] Joysticks do not work on RHEL6/CentOS6 systems 2014-04-17 20:18:50 -07:00
cpuinfo Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
dynapi Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
events Fixed bug 2503 - Loop indexing and event union errors in SDL_gesture.c 2014-04-17 19:52:15 -07:00
file Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
filesystem Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
haptic Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
joystick Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
libm Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
loadso Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
main Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
power Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
render Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
stdlib Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
test Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
thread Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
timer Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
video Fixed bug 2485 - [PATCH] Wayland: cursor disappears permanently after window loses mouse focus 2014-04-17 20:51:28 -07:00
SDL_assert_c.h Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
SDL_assert.c Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
SDL_error_c.h Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
SDL_error.c Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
SDL_hints.c Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
SDL_internal.h Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
SDL_log.c Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
SDL.c Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00