src/video/wayland/SDL_waylandwindow.c
changeset 11092 9c9b7b7e46e1
parent 11088 69452f9839d5
child 11284 3db78361e751
equal deleted inserted replaced
11091:4f02bf4b6d75 11092:9c9b7b7e46e1
   143        just return an error for older apps using this function. Those apps
   143        just return an error for older apps using this function. Those apps
   144        will need to be recompiled against newer headers or not use Wayland,
   144        will need to be recompiled against newer headers or not use Wayland,
   145        maybe by forcing SDL_VIDEODRIVER=x11. */
   145        maybe by forcing SDL_VIDEODRIVER=x11. */
   146     if (version < 2000006) {
   146     if (version < 2000006) {
   147         info->subsystem = SDL_SYSWM_UNKNOWN;
   147         info->subsystem = SDL_SYSWM_UNKNOWN;
       
   148         SDL_SetError("Version must be 2.0.6 or newer");
   148         return SDL_FALSE;
   149         return SDL_FALSE;
   149     }
   150     }
   150 
   151 
   151     info->info.wl.display = data->waylandData->display;
   152     info->info.wl.display = data->waylandData->display;
   152     info->info.wl.surface = data->surface;
   153     info->info.wl.surface = data->surface;