wayland: Pass --no-wrap to Zenity.

There seems to be a bug where it can wrap the text based on the minimum possible
window size, which can be worked around with --no-wrap. This technically uncaps
the width entirely, but this isn't wildly different from what other backends do.
This commit is contained in:
Ethan Lee 2021-03-26 00:40:05 -04:00 committed by Ryan C. Gordon
parent 54719a9d3d
commit 07ba13b7a9

View File

@ -32,7 +32,7 @@ Wayland_ShowMessageBox(const SDL_MessageBoxData *messageboxdata, int *buttonid)
#define ZENITY_CONST(name, str) \
const char *name = str; \
const size_t name##_len = SDL_strlen(name);
ZENITY_CONST(zenity, "zenity --question --switch --icon-name=dialog-")
ZENITY_CONST(zenity, "zenity --question --switch --no-wrap --icon-name=dialog-")
ZENITY_CONST(title, "--title=")
ZENITY_CONST(message, "--text=")
ZENITY_CONST(extrabutton, "--extra-button=")