proto/shm: update wl_shm to v2 (#13187)
This commit is contained in:
parent
562171ab66
commit
8606bc255b
2 changed files with 2 additions and 1 deletions
|
|
@ -140,7 +140,7 @@ CProtocolManager::CProtocolManager() {
|
|||
PROTO::data = makeUnique<CWLDataDeviceProtocol>(&wl_data_device_manager_interface, 3, "WLDataDevice");
|
||||
PROTO::compositor = makeUnique<CWLCompositorProtocol>(&wl_compositor_interface, 6, "WLCompositor");
|
||||
PROTO::subcompositor = makeUnique<CWLSubcompositorProtocol>(&wl_subcompositor_interface, 1, "WLSubcompositor");
|
||||
PROTO::shm = makeUnique<CWLSHMProtocol>(&wl_shm_interface, 1, "WLSHM");
|
||||
PROTO::shm = makeUnique<CWLSHMProtocol>(&wl_shm_interface, 2, "WLSHM");
|
||||
|
||||
// Extensions
|
||||
PROTO::viewport = makeUnique<CViewporterProtocol>(&wp_viewporter_interface, 1, "Viewporter");
|
||||
|
|
|
|||
|
|
@ -176,6 +176,7 @@ CWLSHMResource::CWLSHMResource(UP<CWlShm>&& resource_) : m_resource(std::move(re
|
|||
if UNLIKELY (!good())
|
||||
return;
|
||||
|
||||
m_resource->setRelease([this](CWlShm* r) { PROTO::shm->destroyResource(this); });
|
||||
m_resource->setOnDestroy([this](CWlShm* r) { PROTO::shm->destroyResource(this); });
|
||||
|
||||
m_resource->setCreatePool([](CWlShm* r, uint32_t id, int32_t fd, int32_t size) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue