Skip to content

Commit

Permalink
Set SDL_HINT_APP_NAME for tiles
Browse files Browse the repository at this point in the history
  • Loading branch information
DeeUnderscore committed Jan 13, 2025
1 parent 33bd0e9 commit cd9d3ef
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/sdltiles.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,13 @@ static void InitSDL()
SDL_SetHint( SDL_HINT_IME_SUPPORT_EXTENDED_TEXT, "1" );
#endif

#if defined(SDL_HINT_APP_NAME)
// Requires SDL 2.0.18. String used multiple ways, one of them is the game
// identifying itself when asking to inhibit screensaver via dbus under
// Linux.
SDL_SetHint( SDL_HINT_APP_NAME, _( "Cataclysm: Dark Days Ahead" ) );
#endif

#if defined(__linux__)
// https://bugzilla.libsdl.org/show_bug.cgi?id=3472#c5
if( SDL_COMPILEDVERSION == SDL_VERSIONNUM( 2, 0, 5 ) ) {
Expand Down Expand Up @@ -4198,3 +4205,4 @@ bool window_contains_point_relative( const catacurses::window &win, const point
const half_open_rectangle<point> win_bounds( point::zero, bound );
return win_bounds.contains( p );
}

0 comments on commit cd9d3ef

Please sign in to comment.