autocommit 2022-02-24 16:30:11 CET
This commit is contained in:
parent
666e475032
commit
7d28d30666
39 changed files with 1670 additions and 209 deletions
|
|
@ -10,6 +10,7 @@ use crate::wire::wl_compositor::*;
|
|||
use crate::wire::WlCompositorId;
|
||||
use std::rc::Rc;
|
||||
use thiserror::Error;
|
||||
use crate::xwayland::XWaylandEvent;
|
||||
|
||||
pub struct WlCompositorGlobal {
|
||||
name: GlobalName,
|
||||
|
|
@ -51,6 +52,9 @@ impl WlCompositor {
|
|||
let surface = Rc::new(WlSurface::new(surface.id, &self.client));
|
||||
track!(self.client, surface);
|
||||
self.client.add_client_obj(&surface)?;
|
||||
if let Some(queue) = &self.client.xwayland_queue {
|
||||
queue.push(XWaylandEvent::SurfaceCreated(surface.clone()));
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue