| 456 | }; |
| 457 | |
| 458 | wayfire_shell *wayfire_shell_create(wl_display *display) |
| 459 | { |
| 460 | wayfire_shell *ws = new wayfire_shell; |
| 461 | |
| 462 | ws->shell_manager = wl_global_create(display, |
| 463 | &zwf_shell_manager_v2_interface, 2, NULL, bind_zwf_shell_manager); |
| 464 | |
| 465 | if (ws->shell_manager == NULL) |
| 466 | { |
| 467 | LOGE("Failed to create wayfire_shell interface"); |
| 468 | delete ws; |
| 469 | |
| 470 | return NULL; |
| 471 | } |
| 472 | |
| 473 | return ws; |
| 474 | } |
| 475 | |
| 476 | class wayfire_shell_protocol_impl : public wf::plugin_interface_t |
| 477 | { |