1
0
Fork 0
forked from wry/wry

xwayland: improve damage tracking

This commit is contained in:
Julian Orth 2025-02-19 16:39:04 +01:00
parent f4e8d132f3
commit 52c9fac23b
5 changed files with 39 additions and 23 deletions

View file

@ -1789,8 +1789,14 @@ impl Node for WlSurface {
}
fn node_on_focus(self: Rc<Self>, seat: &WlSeatGlobal) {
if let Some(tl) = self.toplevel.get() {
tl.tl_on_activate();
if let Some(xsurface) = self.ext.get().into_xsurface() {
if let Some(window) = xsurface.xwindow.get() {
self.client
.state
.xwayland
.queue
.push(XWaylandEvent::Activate(window.data.clone()));
}
}
seat.focus_surface(&self);
}