Skip to content
Myr

wayland: xdg-output-manager global may arrive after output globals

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Daniel Eklöf · committed by Daniel Eklöf · parent d79fdf4 · Browse files · 1 file+7 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+7 added−1 removed

  • other:+7 added−1 removed

1 file+7 added−1 removed

modified:wayland.c+7 added-1 removed
2179 unmodified lines
2180 * identifiers (e.g. "LVDS-1"). Use the XDG output interface2181 * for that.2182 */21832184 assert(wayl->xdg_output_manager != NULL);2184 if (wayl->xdg_output_manager != NULL) {2185 mon->xdg = zxdg_output_manager_v1_get_xdg_output(2186 wayl->xdg_output_manager, mon->output);2187
72 unmodified lines
2260 return;22612262 wayl->xdg_output_manager = wl_registry_bind(2263 wayl->registry, name, &zxdg_output_manager_v1_interface, required);22642265 tll_foreach(wayl->monitors, it) {2266 struct monitor *mon = &it->item;2267 assert(mon->xdg == NULL);2268 mon->xdg = zxdg_output_manager_v1_get_xdg_output(wayl->xdg_output_manager, mon->output);2269 zxdg_output_v1_add_listener(mon->xdg, &xdg_output_listener, mon);2270 }2271 }22722273 else if (strcmp(interface, xdg_activation_v1_interface.name) == 0) {2274 const uint32_t required = 1;
925 unmodified lines