wayland: one less level of unique_ptr
[staging/windowmanager.git] / src / main.cpp
index 9b2f48a..146020e 100644 (file)
@@ -127,12 +127,12 @@ int main(int argc, char **argv) {
 
    struct conn c{};
 
-   d->r->add_global_handler(
+   d->r.add_global_handler(
       "ivi_controller", [&c](wl_registry *r, uint32_t name, uint32_t v) {
          c.c = std::make_unique<genivi::controller>(r, name, v);
       });
 
-   d->r->add_global_handler(
+   d->r.add_global_handler(
       "wl_output", [&c](wl_registry *r, uint32_t name, uint32_t v) {
          c.outputs.emplace_back(std::make_unique<wl::output>(r, name, v));
       });