Browse Source

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.
Ethan Lee 4 years ago
parent
commit
07ba13b7a9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/video/wayland/SDL_waylandmessagebox.c

+ 1 - 1
src/video/wayland/SDL_waylandmessagebox.c

@@ -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=")