feat: add idle protocol to avoid update workspace when idle

This commit is contained in:
Alexis
2018-08-09 01:10:07 +02:00
parent 193bd8a79a
commit c1e2735314
4 changed files with 43 additions and 6 deletions

View File

@ -12,6 +12,12 @@ static void handle_global(void *data, struct wl_registry *registry,
*output = (struct wl_output *)wl_registry_bind(registry, name,
&wl_output_interface, version);
o->bars.emplace_back(*o, std::move(output));
} else if (!strcmp(interface, org_kde_kwin_idle_interface.name)) {
o->idle_manager = (org_kde_kwin_idle *)wl_registry_bind(registry, name,
&org_kde_kwin_idle_interface, version);
} else if (!strcmp(interface, wl_seat_interface.name)) {
o->seat = (struct wl_seat *)wl_registry_bind(registry, name,
&wl_seat_interface, version);
}
}