mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-06 06:34:35 +00:00
X11TK: Implement SDL_HINT_VIDEO_X11_PREFER_TOOLKIT
This commit is contained in:
parent
a83a12523d
commit
cf8ff67718
1 changed files with 5 additions and 3 deletions
|
|
@ -235,10 +235,12 @@ static bool X11_ShowMessageBoxImpl(const SDL_MessageBoxData *messageboxdata, int
|
|||
// Display an x11 message box.
|
||||
bool X11_ShowMessageBox(const SDL_MessageBoxData *messageboxdata, int *buttonID)
|
||||
{
|
||||
if (SDL_Zenity_ShowMessageBox(messageboxdata, buttonID)) {
|
||||
return true;
|
||||
if (!SDL_GetHintBoolean(SDL_HINT_VIDEO_X11_PREFER_TOOLKIT, false)) {
|
||||
if (SDL_Zenity_ShowMessageBox(messageboxdata, buttonID)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
#if SDL_FORK_MESSAGEBOX
|
||||
// Use a child process to protect against setlocale(). Annoying.
|
||||
pid_t pid;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue