[client] wayland: split xdg-shell handling into a module

This will allow libdecor to be added as a new pseudo-shell.
This commit is contained in:
Quantum
2021-03-06 05:20:29 -05:00
committed by Geoffrey McRae
parent 854b53e28c
commit 4031a862df
5 changed files with 158 additions and 114 deletions

View File

@@ -236,11 +236,15 @@ bool waylandPollUnregister(int fd);
bool waylandRegistryInit(void);
void waylandRegistryFree(void);
// shell module
bool waylandShellInit(const char * title, bool fullscreen, bool maximize, bool borderless);
void waylandShellAckConfigureIfNeeded(void);
void waylandSetFullscreen(bool fs);
bool waylandGetFullscreen(void);
// window module
bool waylandWindowInit(const char * title, bool fullscreen, bool maximize, bool borderless);
void waylandWindowFree(void);
void waylandWindowUpdateScale(void);
void waylandSetWindowSize(int x, int y);
void waylandSetFullscreen(bool fs);
bool waylandGetFullscreen(void);
bool waylandIsValidPointerPos(int x, int y);