Implement Wayland_SetWindowResizable

This commit is contained in:
Ethan Lee 2021-01-23 15:40:22 -05:00
parent 360e04dd23
commit e787282ba8
3 changed files with 12 additions and 0 deletions

View File

@ -203,6 +203,7 @@ Wayland_CreateDevice(int devindex)
device->SetWindowGrab = Wayland_SetWindowGrab;
device->RestoreWindow = Wayland_RestoreWindow;
device->SetWindowBordered = Wayland_SetWindowBordered;
device->SetWindowResizable = Wayland_SetWindowResizable;
device->SetWindowSize = Wayland_SetWindowSize;
device->SetWindowTitle = Wayland_SetWindowTitle;
device->DestroyWindow = Wayland_DestroyWindow;

View File

@ -627,6 +627,16 @@ Wayland_SetWindowBordered(_THIS, SDL_Window * window, SDL_bool bordered)
}
}
void
Wayland_SetWindowResizable(_THIS, SDL_Window * window, SDL_bool resizable)
{
/* No-op, this is handled by the xdg-shell/wl_shell callbacks.
* Also note that we do NOT implement SetMaximumSize/SetMinimumSize, as
* those are also no-ops for the same reason, but SDL_video.c does not
* require a driver implementation.
*/
}
void
Wayland_MaximizeWindow(_THIS, SDL_Window * window)
{

View File

@ -94,6 +94,7 @@ extern void Wayland_MinimizeWindow(_THIS, SDL_Window * window);
extern void Wayland_SetWindowGrab(_THIS, SDL_Window * window, SDL_bool grabbed);
extern void Wayland_RestoreWindow(_THIS, SDL_Window * window);
extern void Wayland_SetWindowBordered(_THIS, SDL_Window * window, SDL_bool bordered);
extern void Wayland_SetWindowResizable(_THIS, SDL_Window * window, SDL_bool resizable);
extern int Wayland_CreateWindow(_THIS, SDL_Window *window);
extern void Wayland_SetWindowSize(_THIS, SDL_Window * window);
extern void Wayland_SetWindowTitle(_THIS, SDL_Window * window);