{"id":60408,"library":"wayland","title":"Wayland","description":"Core Wayland window system code and protocol for compositing window managers.","status":"active","version":"1.23.1","language":"cpp","source_language":null,"source_url":null,"tags":["wayland","display","window-system","linux"],"install":[{"cmd":"vcpkg install wayland","lang":"bash","label":"vcpkg"},{"cmd":"# CMakeLists.txt\nfind_package(wayland CONFIG REQUIRED)\ntarget_link_libraries(main PRIVATE Wayland::wayland-client)","lang":"cmake","label":"CMake"}],"dependencies":[],"imports":[{"symbol":"wayland-client.h","correct":"#include <wayland-client.h>"}],"quickstart":{"code":"#include <wayland-client.h>\n#include <stdio.h>\n\nint main() {\n    struct wl_display *display = wl_display_connect(NULL);\n    if (!display) {\n        fprintf(stderr, \"Failed to connect to Wayland display\\n\");\n        return 1;\n    }\n    printf(\"Connected to Wayland display.\\n\");\n    wl_display_disconnect(display);\n    return 0;\n}","lang":"cpp","description":"Minimal example connecting to a Wayland display."},"warnings":[{"fix":"Use a higher-level toolkit (e.g., Qt, GTK) or implement the event loop with wl_display_dispatch.","message":"Wayland is a C library; requires manual event loop handling and protocol object management.","severity":"gotcha","affected_versions":"*"}],"env_vars":null,"search_vec":"'code':6 'composit':10 'core':2 'display':14 'linux':18 'manag':12 'protocol':8 'system':5,17 'wayland':1,3,13 'window':4,11,16 'window-system':15","created_at":"2026-06-16T19:29:32.307892+00:00","updated_at":"2026-06-16T19:29:32.307892+00:00","problems":[],"ecosystem":"vcpkg","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":null,"github":null,"docs":null,"changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["other"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-17","next_check":"2026-12-14","install_tag":null}}