mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-04 04:06:06 -05: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
e249b52abd
commit
eafff70439
2 changed files with 8 additions and 0 deletions
|
|
@ -50,6 +50,10 @@
|
|||
### Deprecated
|
||||
### Removed
|
||||
### Fixed
|
||||
|
||||
* Compiling against wayland-protocols < 1.25
|
||||
|
||||
|
||||
### Security
|
||||
### Contributors
|
||||
|
||||
|
|
|
|||
|
|
@ -706,6 +706,7 @@ xdg_toplevel_close(void *data, struct xdg_toplevel *xdg_toplevel)
|
|||
term_shutdown(term);
|
||||
}
|
||||
|
||||
#if defined(XDG_TOPLEVEL_CONFIGURE_BOUNDS_SINCE_VERSION)
|
||||
static void
|
||||
xdg_toplevel_configure_bounds(void *data,
|
||||
struct xdg_toplevel *xdg_toplevel,
|
||||
|
|
@ -713,6 +714,7 @@ xdg_toplevel_configure_bounds(void *data,
|
|||
{
|
||||
/* TODO: ensure we don't pick a bigger size */
|
||||
}
|
||||
#endif
|
||||
|
||||
#if defined(XDG_TOPLEVEL_WM_CAPABILITIES_SINCE_VERSION)
|
||||
static void
|
||||
|
|
@ -742,7 +744,9 @@ xdg_toplevel_wm_capabilities(void *data,
|
|||
static const struct xdg_toplevel_listener xdg_toplevel_listener = {
|
||||
.configure = &xdg_toplevel_configure,
|
||||
/*.close = */&xdg_toplevel_close, /* epoll-shim defines a macro ‘close’... */
|
||||
#if defined(XDG_TOPLEVEL_CONFIGURE_BOUNDS_SINCE_VERSION)
|
||||
.configure_bounds = &xdg_toplevel_configure_bounds,
|
||||
#endif
|
||||
#if defined(XDG_TOPLEVEL_WM_CAPABILITIES_SINCE_VERSION)
|
||||
.wm_capabilities = xdg_toplevel_wm_capabilities,
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue