mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-01-10 14:23:57 +00:00
[client] wayland: use zxdg_output_manager_v1 version 3 if possible
Version 3 does not send xdg_output.done events, instead guaranteeing that all xdg_output.* events are sent before wl_output.done. This saves us from doing the work twice.
This commit is contained in:
parent
0ad469178a
commit
96bcfff28b
1 changed files with 2 additions and 1 deletions
|
@ -70,7 +70,8 @@ static void registryGlobalHandler(void * data, struct wl_registry * registry,
|
|||
&zwp_idle_inhibit_manager_v1_interface, 1);
|
||||
else if (!strcmp(interface, zxdg_output_manager_v1_interface.name) && version >= 2)
|
||||
wlWm.xdgOutputManager = wl_registry_bind(wlWm.registry, name,
|
||||
&zxdg_output_manager_v1_interface, 2);
|
||||
// we only need v2 to run, but v3 saves a callback
|
||||
&zxdg_output_manager_v1_interface, version > 3 ? 3 : version);
|
||||
}
|
||||
|
||||
static void registryGlobalRemoveHandler(void * data,
|
||||
|
|
Loading…
Reference in a new issue