wayland: make object versions type safe
This commit is contained in:
parent
0d7b45d149
commit
e3a1a0b30f
50 changed files with 198 additions and 173 deletions
|
|
@ -4,7 +4,7 @@ use {
|
|||
globals::{Global, GlobalName},
|
||||
ifs::{wl_region::WlRegion, wl_surface::WlSurface},
|
||||
leaks::Tracker,
|
||||
object::Object,
|
||||
object::{Object, Version},
|
||||
utils::buffd::{MsgParser, MsgParserError},
|
||||
wire::{wl_compositor::*, WlCompositorId},
|
||||
xwayland::XWaylandEvent,
|
||||
|
|
@ -20,7 +20,7 @@ pub struct WlCompositorGlobal {
|
|||
pub struct WlCompositor {
|
||||
id: WlCompositorId,
|
||||
client: Rc<Client>,
|
||||
version: u32,
|
||||
version: Version,
|
||||
pub tracker: Tracker<Self>,
|
||||
}
|
||||
|
||||
|
|
@ -33,7 +33,7 @@ impl WlCompositorGlobal {
|
|||
self: Rc<Self>,
|
||||
id: WlCompositorId,
|
||||
client: &Rc<Client>,
|
||||
version: u32,
|
||||
version: Version,
|
||||
) -> Result<(), WlCompositorError> {
|
||||
let obj = Rc::new(WlCompositor {
|
||||
id,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue