src/video/mir/SDL_mirwindow.c
changeset 8155 cf0eda3f5e35
parent 8154 ea6b25de67b6
child 8157 f5d262613ed2
equal deleted inserted replaced
8154:ea6b25de67b6 8155:cf0eda3f5e35
   156 SDL_bool
   156 SDL_bool
   157 MIR_GetWindowWMInfo(_THIS, SDL_Window* window, SDL_SysWMinfo* info)
   157 MIR_GetWindowWMInfo(_THIS, SDL_Window* window, SDL_SysWMinfo* info)
   158 {
   158 {
   159     if (info->version.major == SDL_MAJOR_VERSION &&
   159     if (info->version.major == SDL_MAJOR_VERSION &&
   160         info->version.minor == SDL_MINOR_VERSION) {
   160         info->version.minor == SDL_MINOR_VERSION) {
       
   161         MIR_Window* mir_window = window->driverdata;
   161 
   162 
   162         info->subsystem = SDL_SYSWM_MIR;
   163         info->subsystem = SDL_SYSWM_MIR;
       
   164         info->info.mir.connection = mir_window->mir_data->connection;
       
   165         info->info.mir.surface = mir_window->surface;
       
   166 
   163         return SDL_TRUE;
   167         return SDL_TRUE;
   164     }
   168     }
   165 
   169 
   166     return SDL_FALSE;
   170     return SDL_FALSE;
   167 }
   171 }