mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
wayland: verify xdg-output-manager interface version
This commit is contained in:
parent
4e93b3a2d8
commit
988134717f
1 changed files with 6 additions and 1 deletions
|
|
@ -259,8 +259,13 @@ handle_global(void *data, struct wl_registry *registry,
|
|||
}
|
||||
|
||||
else if (strcmp(interface, zxdg_output_manager_v1_interface.name) == 0) {
|
||||
const uint32_t required = 1;
|
||||
if (!verify_iface_version(interface, version, required))
|
||||
return;
|
||||
|
||||
wayl->xdg_output_manager = wl_registry_bind(
|
||||
wayl->registry, name, &zxdg_output_manager_v1_interface, min(version, 2));
|
||||
wayl->registry, name, &zxdg_output_manager_v1_interface,
|
||||
min(version, 2));
|
||||
}
|
||||
|
||||
else if (strcmp(interface, wl_output_interface.name) == 0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue