src/video/wayland/SDL_waylandvideo.h
changeset 8104 2e4f1bd21196
parent 8082 5b83ad3f01ac
child 8149 681eb46b8ac4
equal deleted inserted replaced
8103:d4a88c49247e 8104:2e4f1bd21196
    17   2. Altered source versions must be plainly marked as such, and must not be
    17   2. Altered source versions must be plainly marked as such, and must not be
    18      misrepresented as being the original software.
    18      misrepresented as being the original software.
    19   3. This notice may not be removed or altered from any source distribution.
    19   3. This notice may not be removed or altered from any source distribution.
    20 */
    20 */
    21 
    21 
    22 #include "SDL_config.h"
    22 #include "../../SDL_internal.h"
    23 
    23 
    24 #ifndef _SDL_waylandvideo_h
    24 #ifndef _SDL_waylandvideo_h
    25 #define _SDL_waylandvideo_h
    25 #define _SDL_waylandvideo_h
    26 
    26 
    27 #include <wayland-client.h>
       
    28 #include <wayland-cursor.h>
       
    29 #include <wayland-egl.h>
       
    30 
       
    31 #include <EGL/egl.h>
    27 #include <EGL/egl.h>
       
    28 #include "wayland-util.h"
    32 
    29 
    33 struct xkb_context;
    30 struct xkb_context;
    34 struct SDL_WaylandInput;
    31 struct SDL_WaylandInput;
    35 
    32 
    36 #ifdef SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH
    33 #ifdef SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH
    70 #endif /* SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH */
    67 #endif /* SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH */
    71 
    68 
    72     uint32_t shm_formats;
    69     uint32_t shm_formats;
    73 } SDL_VideoData;
    70 } SDL_VideoData;
    74 
    71 
    75 static inline void
       
    76 wayland_schedule_write(SDL_VideoData *data)
       
    77 {
       
    78     wl_display_flush(data->display);
       
    79 }
       
    80 
       
    81 #endif /* _SDL_nullvideo_h */
    72 #endif /* _SDL_nullvideo_h */
    82 
    73 
    83 /* vi: set ts=4 sw=4 expandtab: */
    74 /* vi: set ts=4 sw=4 expandtab: */