From 03f8528315fa46c95991a34f3325d7b33ae5538c Mon Sep 17 00:00:00 2001
From: Edward Rudd <urkle@outoforder.cc>
Date: Sat, 02 May 2020 21:48:36 +0000
Subject: [PATCH] Update source to SDL2 2.0.12
---
source/src/video/wayland/SDL_waylandwindow.h | 22 ++++++++++++++++++++--
1 files changed, 20 insertions(+), 2 deletions(-)
diff --git a/source/src/video/wayland/SDL_waylandwindow.h b/source/src/video/wayland/SDL_waylandwindow.h
index 69b9889..322ce63 100644
--- a/source/src/video/wayland/SDL_waylandwindow.h
+++ b/source/src/video/wayland/SDL_waylandwindow.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2018 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2020 Sam Lantinga <slouken@libsdl.org>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
@@ -26,6 +26,7 @@
#include "../SDL_sysvideo.h"
#include "SDL_syswm.h"
+#include "../../events/SDL_touch_c.h"
#include "SDL_waylandvideo.h"
@@ -62,10 +63,24 @@
struct SDL_WaylandInput *keyboard_device;
EGLSurface egl_surface;
struct zwp_locked_pointer_v1 *locked_pointer;
+ struct zxdg_toplevel_decoration_v1 *server_decoration;
+ struct org_kde_kwin_server_decoration *kwin_server_decoration;
#ifdef SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH
struct qt_extended_surface *extended_surface;
-#endif /* SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH */
+#endif /* SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH */
+
+ struct {
+ SDL_bool pending, configure;
+ uint32_t serial;
+ int width, height;
+ float scale_factor;
+ } resize;
+
+ struct wl_output **outputs;
+ int num_outputs;
+
+ float scale_factor;
} SDL_WindowData;
extern void Wayland_ShowWindow(_THIS, SDL_Window *window);
@@ -74,6 +89,7 @@
SDL_bool fullscreen);
extern void Wayland_MaximizeWindow(_THIS, SDL_Window * window);
extern void Wayland_RestoreWindow(_THIS, SDL_Window * window);
+extern void Wayland_SetWindowBordered(_THIS, SDL_Window * window, SDL_bool bordered);
extern int Wayland_CreateWindow(_THIS, SDL_Window *window);
extern void Wayland_SetWindowSize(_THIS, SDL_Window * window);
extern void Wayland_SetWindowTitle(_THIS, SDL_Window * window);
@@ -83,6 +99,8 @@
Wayland_GetWindowWMInfo(_THIS, SDL_Window * window, SDL_SysWMinfo * info);
extern int Wayland_SetWindowHitTest(SDL_Window *window, SDL_bool enabled);
+extern void Wayland_HandlePendingResize(SDL_Window *window);
+
#endif /* SDL_waylandwindow_h_ */
/* vi: set ts=4 sw=4 expandtab: */
--
Gitblit v1.9.3