Linux SDL2 - Fix first click when activating the viewer window not coming through

master
Zi Ree 2022-07-30 16:37:38 +02:00
parent 264237a070
commit b232bc4082
1 changed files with 1 additions and 0 deletions

View File

@ -652,6 +652,7 @@ BOOL LLWindowSDL::createContext(int x, int y, int width, int height, int bits, B
mReallyCapturedCount = 0;
SDL_SetHint( SDL_HINT_VIDEO_X11_NET_WM_BYPASS_COMPOSITOR, "0" );
SDL_SetHint(SDL_HINT_MOUSE_FOCUS_CLICKTHROUGH, "1");
if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_AUDIO ) < 0 )
{