x11: Dynamically update the scale factor

If the text-scaling-factor setting is available via D-Bus, add a listener and update the content scale values for the displays if the value is changed during runtime.

Factors out the D-Bus message pump from the system theme detection code to the general D-Bus code, as it's now used for more purposes than just the system theme.
This commit is contained in:
Frank Praznik
2023-05-18 17:42:08 -04:00
committed by Sam Lantinga
parent 068d3da366
commit d5f07730be
7 changed files with 105 additions and 28 deletions

View File

@@ -26,6 +26,5 @@
extern SDL_bool SDL_SystemTheme_Init(void);
extern SDL_SystemTheme SDL_SystemTheme_Get(void);
extern void SDL_SystemTheme_PumpEvents(void);
#endif /* SDL_system_theme_h_ */