@@ -61,12 +61,12 @@ static VideoBootStrap *bootstrap[] = {
61
61
#if SDL_VIDEO_DRIVER_COCOA
62
62
& COCOA_bootstrap ,
63
63
#endif
64
- #if SDL_VIDEO_DRIVER_X11
65
- & X11_bootstrap ,
66
- #endif
67
64
#if SDL_VIDEO_DRIVER_WAYLAND
68
65
& Wayland_bootstrap ,
69
66
#endif
67
+ #if SDL_VIDEO_DRIVER_X11
68
+ & X11_bootstrap ,
69
+ #endif
70
70
#if SDL_VIDEO_DRIVER_VIVANTE
71
71
& VIVANTE_bootstrap ,
72
72
#endif
@@ -4249,12 +4249,12 @@ SDL_IsScreenKeyboardShown(SDL_Window *window)
4249
4249
#if SDL_VIDEO_DRIVER_UIKIT
4250
4250
#include "uikit/SDL_uikitmessagebox.h"
4251
4251
#endif
4252
- #if SDL_VIDEO_DRIVER_X11
4253
- #include "x11/SDL_x11messagebox.h"
4254
- #endif
4255
4252
#if SDL_VIDEO_DRIVER_WAYLAND
4256
4253
#include "wayland/SDL_waylandmessagebox.h"
4257
4254
#endif
4255
+ #if SDL_VIDEO_DRIVER_X11
4256
+ #include "x11/SDL_x11messagebox.h"
4257
+ #endif
4258
4258
#if SDL_VIDEO_DRIVER_HAIKU
4259
4259
#include "haiku/SDL_bmessagebox.h"
4260
4260
#endif
@@ -4362,17 +4362,17 @@ SDL_ShowMessageBox(const SDL_MessageBoxData *messageboxdata, int *buttonid)
4362
4362
retval = 0 ;
4363
4363
}
4364
4364
#endif
4365
- #if SDL_VIDEO_DRIVER_X11
4365
+ #if SDL_VIDEO_DRIVER_WAYLAND
4366
4366
if (retval == -1 &&
4367
- SDL_MessageboxValidForDriver (messageboxdata , SDL_SYSWM_X11 ) &&
4368
- X11_ShowMessageBox (messageboxdata , buttonid ) == 0 ) {
4367
+ SDL_MessageboxValidForDriver (messageboxdata , SDL_SYSWM_WAYLAND ) &&
4368
+ Wayland_ShowMessageBox (messageboxdata , buttonid ) == 0 ) {
4369
4369
retval = 0 ;
4370
4370
}
4371
4371
#endif
4372
- #if SDL_VIDEO_DRIVER_WAYLAND
4372
+ #if SDL_VIDEO_DRIVER_X11
4373
4373
if (retval == -1 &&
4374
- SDL_MessageboxValidForDriver (messageboxdata , SDL_SYSWM_WAYLAND ) &&
4375
- Wayland_ShowMessageBox (messageboxdata , buttonid ) == 0 ) {
4374
+ SDL_MessageboxValidForDriver (messageboxdata , SDL_SYSWM_X11 ) &&
4375
+ X11_ShowMessageBox (messageboxdata , buttonid ) == 0 ) {
4376
4376
retval = 0 ;
4377
4377
}
4378
4378
#endif
0 commit comments