Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion src/sdl/sdl_glimp.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,12 @@ void GLimp_Shutdown( qboolean unloadDLL )
SDL_DestroyWindow( SDL_window );
SDL_window = NULL;

if ( glw_state.isFullscreen )
if ( glw_state.isFullscreen
#ifdef __linux__
// wayland does not support 'SDL_WarpMouseGlobal' and crashes if called
&& Q_stricmp(SDL_GetCurrentVideoDriver(), "wayland")
#endif
)
SDL_WarpMouseGlobal( glw_state.desktop_width / 2, glw_state.desktop_height / 2 );

if ( unloadDLL )
Expand Down
Loading