mirror of
https://github.com/Ryujinx/SDL.git
synced 2025-07-18 08:47:25 +00:00
wayland: Check for the input handle before checking the keyboard handle
(cherry picked from commit be2cb00066
)
This commit is contained in:
parent
30579c8cd7
commit
b7e8e6f3b8
|
@ -145,8 +145,9 @@ Wayland_HasScreenKeyboardSupport(_THIS)
|
||||||
* input protocol, make sure we don't have any physical keyboards either.
|
* input protocol, make sure we don't have any physical keyboards either.
|
||||||
*/
|
*/
|
||||||
SDL_VideoData *driverdata = _this->driverdata;
|
SDL_VideoData *driverdata = _this->driverdata;
|
||||||
return (driverdata->input->keyboard == NULL &&
|
SDL_bool haskeyboard = (driverdata->input != NULL) && (driverdata->input->keyboard != NULL);
|
||||||
driverdata->text_input_manager != NULL);
|
SDL_bool hastextmanager = (driverdata->text_input_manager != NULL);
|
||||||
|
return (!haskeyboard && hastextmanager);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* SDL_VIDEO_DRIVER_WAYLAND */
|
#endif /* SDL_VIDEO_DRIVER_WAYLAND */
|
||||||
|
|
Loading…
Reference in a new issue