mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-12 05:34:01 -04:00
wayland: #ifdef on XDG_TOPLEVEL_CONFIGURE_BOUNDS_SINCE_VERSION
This enables us to compile against wayland-protocols < 1.25
This commit is contained in:
parent
1cf22846a0
commit
5697348b46
2 changed files with 8 additions and 0 deletions
|
|
@ -50,6 +50,10 @@
|
||||||
### Deprecated
|
### Deprecated
|
||||||
### Removed
|
### Removed
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
||||||
|
* Compiling against wayland-protocols < 1.25
|
||||||
|
|
||||||
|
|
||||||
### Security
|
### Security
|
||||||
### Contributors
|
### Contributors
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -706,6 +706,7 @@ xdg_toplevel_close(void *data, struct xdg_toplevel *xdg_toplevel)
|
||||||
term_shutdown(term);
|
term_shutdown(term);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if defined(XDG_TOPLEVEL_CONFIGURE_BOUNDS_SINCE_VERSION)
|
||||||
static void
|
static void
|
||||||
xdg_toplevel_configure_bounds(void *data,
|
xdg_toplevel_configure_bounds(void *data,
|
||||||
struct xdg_toplevel *xdg_toplevel,
|
struct xdg_toplevel *xdg_toplevel,
|
||||||
|
|
@ -713,6 +714,7 @@ xdg_toplevel_configure_bounds(void *data,
|
||||||
{
|
{
|
||||||
/* TODO: ensure we don't pick a bigger size */
|
/* TODO: ensure we don't pick a bigger size */
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(XDG_TOPLEVEL_WM_CAPABILITIES_SINCE_VERSION)
|
#if defined(XDG_TOPLEVEL_WM_CAPABILITIES_SINCE_VERSION)
|
||||||
static void
|
static void
|
||||||
|
|
@ -742,7 +744,9 @@ xdg_toplevel_wm_capabilities(void *data,
|
||||||
static const struct xdg_toplevel_listener xdg_toplevel_listener = {
|
static const struct xdg_toplevel_listener xdg_toplevel_listener = {
|
||||||
.configure = &xdg_toplevel_configure,
|
.configure = &xdg_toplevel_configure,
|
||||||
/*.close = */&xdg_toplevel_close, /* epoll-shim defines a macro ‘close’... */
|
/*.close = */&xdg_toplevel_close, /* epoll-shim defines a macro ‘close’... */
|
||||||
|
#if defined(XDG_TOPLEVEL_CONFIGURE_BOUNDS_SINCE_VERSION)
|
||||||
.configure_bounds = &xdg_toplevel_configure_bounds,
|
.configure_bounds = &xdg_toplevel_configure_bounds,
|
||||||
|
#endif
|
||||||
#if defined(XDG_TOPLEVEL_WM_CAPABILITIES_SINCE_VERSION)
|
#if defined(XDG_TOPLEVEL_WM_CAPABILITIES_SINCE_VERSION)
|
||||||
.wm_capabilities = xdg_toplevel_wm_capabilities,
|
.wm_capabilities = xdg_toplevel_wm_capabilities,
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue