From 6b8e880a10bbeed9ec2bf2cbcd113131e3f2ae3a Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Tue, 26 Oct 2021 20:27:34 -0500 Subject: [PATCH] checkkeysthreads: Create a renderer for window display on Wayland Applies checkkeys patch from 105f1206 to checkkeysthreads. --- test/checkkeysthreads.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/checkkeysthreads.c b/test/checkkeysthreads.c index fd812e241..f9de1d802 100644 --- a/test/checkkeysthreads.c +++ b/test/checkkeysthreads.c @@ -224,6 +224,7 @@ int main(int argc, char *argv[]) { SDL_Window *window; + SDL_Renderer *renderer; SDL_Thread *thread; /* Enable standard application logging */ @@ -245,6 +246,12 @@ main(int argc, char *argv[]) quit(2); } + /* On wayland, no window will actually show until something has + actually been displayed. + */ + renderer = SDL_CreateRenderer(window, -1, 0); + SDL_RenderPresent(renderer); + #if __IPHONEOS__ /* Creating the context creates the view, which we need to show keyboard */ SDL_GL_CreateContext(window);