Fix some DBus tray issues

This commit is contained in:
eafton
2026-07-30 21:12:41 +03:00
committed by Sam Lantinga
parent 09552d5bee
commit 7b7a74ebc7
2 changed files with 10 additions and 4 deletions

View File

@@ -120,6 +120,8 @@ typedef bool (SDLCALL *SDL_TrayClickCallback)(void *userdata, SDL_Tray *tray);
* necessary feature. Avoid needlessly creating a tray icon, as the user may
* feel like it clutters their interface.
*
* You should set the SDL_PROP_APP_METADATA_IDENTIFIER_STRING property to ensure correct behaviour on some platforms like Linux.
*
* Using tray icons require the video subsystem.
*
* \param icon a surface to be used as icon. May be NULL.
@@ -145,6 +147,8 @@ extern SDL_DECLSPEC SDL_Tray * SDLCALL SDL_CreateTray(SDL_Surface *icon, const c
* necessary feature. Avoid needlessly creating a tray icon, as the user may
* feel like it clutters their interface.
*
* You should set the SDL_PROP_APP_METADATA_IDENTIFIER_STRING property to ensure correct behaviour on some platforms like Linux.
*
* Using tray icons require the video subsystem.
*
* These are the supported properties: