wayland: add jay_output
This commit is contained in:
parent
6bc7330989
commit
3e3bc38920
9 changed files with 142 additions and 6 deletions
|
|
@ -6,6 +6,7 @@ use {
|
|||
wl_data_source::WlDataSource,
|
||||
zwp_primary_selection_source_v1::ZwpPrimarySelectionSourceV1,
|
||||
},
|
||||
jay_output::JayOutput,
|
||||
wl_buffer::WlBuffer,
|
||||
wl_display::WlDisplay,
|
||||
wl_output::WlOutput,
|
||||
|
|
@ -25,9 +26,9 @@ use {
|
|||
copyhashmap::{CopyHashMap, Locked},
|
||||
},
|
||||
wire::{
|
||||
WlBufferId, WlDataSourceId, WlOutputId, WlPointerId, WlRegionId, WlRegistryId,
|
||||
WlSeatId, WlSurfaceId, XdgPositionerId, XdgSurfaceId, XdgToplevelId, XdgWmBaseId,
|
||||
ZwpPrimarySelectionSourceV1Id,
|
||||
JayOutputId, WlBufferId, WlDataSourceId, WlOutputId, WlPointerId, WlRegionId,
|
||||
WlRegistryId, WlSeatId, WlSurfaceId, XdgPositionerId, XdgSurfaceId, XdgToplevelId,
|
||||
XdgWmBaseId, ZwpPrimarySelectionSourceV1Id,
|
||||
},
|
||||
},
|
||||
std::{cell::RefCell, mem, rc::Rc},
|
||||
|
|
@ -47,6 +48,7 @@ pub struct Objects {
|
|||
pub xdg_positioners: CopyHashMap<XdgPositionerId, Rc<XdgPositioner>>,
|
||||
pub regions: CopyHashMap<WlRegionId, Rc<WlRegion>>,
|
||||
pub buffers: CopyHashMap<WlBufferId, Rc<WlBuffer>>,
|
||||
pub jay_outputs: CopyHashMap<JayOutputId, Rc<JayOutput>>,
|
||||
pub pointers: CopyHashMap<WlPointerId, Rc<WlPointer>>,
|
||||
pub xdg_wm_bases: CopyHashMap<XdgWmBaseId, Rc<XdgWmBase>>,
|
||||
pub seats: CopyHashMap<WlSeatId, Rc<WlSeat>>,
|
||||
|
|
@ -71,6 +73,7 @@ impl Objects {
|
|||
xdg_positioners: Default::default(),
|
||||
regions: Default::default(),
|
||||
buffers: Default::default(),
|
||||
jay_outputs: Default::default(),
|
||||
pointers: Default::default(),
|
||||
xdg_wm_bases: Default::default(),
|
||||
seats: Default::default(),
|
||||
|
|
@ -99,6 +102,7 @@ impl Objects {
|
|||
self.xdg_positioners.clear();
|
||||
self.regions.clear();
|
||||
self.buffers.clear();
|
||||
self.jay_outputs.clear();
|
||||
self.xdg_wm_bases.clear();
|
||||
self.seats.clear();
|
||||
self.pointers.clear();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue