mirror of
https://github.com/Ryujinx/SDL.git
synced 2024-12-23 12:25:37 +00:00
wayland: Return true for HasScreenKeyboardSupport only if no physical keyboard exists
This commit is contained in:
parent
4bbbe5f84c
commit
fc998b8ec9
|
@ -140,8 +140,13 @@ Wayland_SetTextInputRect(_THIS, SDL_Rect *rect)
|
|||
SDL_bool
|
||||
Wayland_HasScreenKeyboardSupport(_THIS)
|
||||
{
|
||||
/* In reality we just want to return tru when the screen keyboard is the
|
||||
* _only_ way to get text input. So, in addition to checking for the text
|
||||
* input protocol, make sure we don't have any physical keyboards either.
|
||||
*/
|
||||
SDL_VideoData *driverdata = _this->driverdata;
|
||||
return (driverdata->text_input_manager != NULL);
|
||||
return (driverdata->input->keyboard == NULL &&
|
||||
driverdata->text_input_manager != NULL);
|
||||
}
|
||||
|
||||
#endif /* SDL_VIDEO_DRIVER_WAYLAND */
|
||||
|
|
Loading…
Reference in a new issue