Skip to content

Commit d86fb8a

Browse files
committed
gdk: Ignore focus loss events caused by text input showing the OSK
1 parent 6622f4e commit d86fb8a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/gdk/SDL_gdk.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ bool GDK_RegisterChangeNotifications(void)
105105
SDL_LogDebug(SDL_LOG_CATEGORY_APPLICATION, "[GDK] in RegisterAppConstrainedChangeNotification handler");
106106
SDL_VideoDevice *_this = SDL_GetVideoDevice();
107107
if (_this) {
108-
if (constrained) {
108+
if (constrained && !((_this->windows) && _this->windows->text_input_active)) {
109109
SDL_SetKeyboardFocus(NULL);
110110
} else {
111111
SDL_SetKeyboardFocus(_this->windows);

0 commit comments

Comments
 (0)