[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 committed 2021-02-21 10:31:48 +11:00
1 parent cfa9171465
commit f4c1927f56
6 files changed
+23 -4

No files matched your search

+4 -2
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