[client] ds: added new getFullscreen operation

As the window manager may change our mode to full screen without our
request we must ask the ds backend for the current state when we want to
toggle the mode.
This commit is contained in:
Geoffrey McRae
2021-01-27 11:11:53 +11:00
parent cfa9171465
commit f4c1927f56
6 changed files with 23 additions and 4 deletions

View File

@@ -55,6 +55,7 @@ void app_handleFocusEvent(bool focused);
void app_handleCloseEvent(void);
void app_setFullscreen(bool fs);
bool app_getFullscreen(void);
bool app_getProp(LG_DSProperty prop, void * ret);
EGLDisplay app_getEGLDisplay(void);

View File

@@ -130,8 +130,9 @@ struct LG_DisplayServerOps
/* wait for the specified time without blocking UI processing/event loops */
void (*wait)(unsigned int time);
/* set the window dimensions */
/* get/set the window dimensions */
void (*setWindowSize)(int x, int y);
bool (*getFullscreen)(void);
void (*setFullscreen)(bool fs);
/* clipboard support */
@@ -162,5 +163,6 @@ struct LG_DisplayServerOps
(x)->uninhibitIdle && \
(x)->wait && \
(x)->setWindowSize && \
(x)->setFullscreen)
(x)->setFullscreen && \
(x)->getFullscreen)
#endif