Commit fbd30c363d5994ad277f6985a5e34ddca1cf1d8f

Philipp Wiesemann 2017-06-11T22:30:39

Fixed missing error messages for SDL_GetWindowWMInfo().

diff --git a/src/video/directfb/SDL_DirectFB_window.c b/src/video/directfb/SDL_DirectFB_window.c
index 936e0a0..cfca743 100644
--- a/src/video/directfb/SDL_DirectFB_window.c
+++ b/src/video/directfb/SDL_DirectFB_window.c
@@ -477,6 +477,7 @@ DirectFB_GetWindowWMInfo(_THIS, SDL_Window * window,
        maybe by forcing SDL_VIDEODRIVER=x11. */
     if (version < 2000006) {
         info->subsystem = SDL_SYSWM_UNKNOWN;
+        SDL_SetError("Version must be 2.0.6 or newer");
         return SDL_FALSE;
     }
 
diff --git a/src/video/wayland/SDL_waylandwindow.c b/src/video/wayland/SDL_waylandwindow.c
index 7113485..36c7967 100644
--- a/src/video/wayland/SDL_waylandwindow.c
+++ b/src/video/wayland/SDL_waylandwindow.c
@@ -145,6 +145,7 @@ Wayland_GetWindowWMInfo(_THIS, SDL_Window * window, SDL_SysWMinfo * info)
        maybe by forcing SDL_VIDEODRIVER=x11. */
     if (version < 2000006) {
         info->subsystem = SDL_SYSWM_UNKNOWN;
+        SDL_SetError("Version must be 2.0.6 or newer");
         return SDL_FALSE;
     }