From 538f7ad6b72f054663eb02aea086370f5c397fff Mon Sep 17 00:00:00 2001 From: Manuel Alfayate Corchete Date: Fri, 5 Feb 2021 00:27:11 +0100 Subject: [PATCH] [KMS/DRM] Remove redundant SDL_SendWindowEvent() call. --- src/video/kmsdrm/SDL_kmsdrmvideo.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/video/kmsdrm/SDL_kmsdrmvideo.c b/src/video/kmsdrm/SDL_kmsdrmvideo.c index 74a82dd40..a41e0760a 100644 --- a/src/video/kmsdrm/SDL_kmsdrmvideo.c +++ b/src/video/kmsdrm/SDL_kmsdrmvideo.c @@ -1244,15 +1244,6 @@ KMSDRM_CreateWindow(_THIS, SDL_Window * window) SDL_SetMouseFocus(window); SDL_SetKeyboardFocus(window); - /***********************************************************/ - /* Tell SDL that the mouse has entered the window using an */ - /* artificial event: we have no windowing system to tell */ - /* SDL that it has happened. This makes SDL set the */ - /* SDL_WINDOW_MOUSE_FOCUS on this window, thus fixing */ - /* Scummvm sticky-on-sides software cursor. */ - /***********************************************************/ - SDL_SendWindowEvent(window, SDL_WINDOWEVENT_ENTER, 0, 0); - cleanup: if (ret) {