|
|
|
@ -175,6 +175,7 @@ impl Runtime {
|
|
|
|
|
if self.target.wid != x11rb::NONE {
|
|
|
|
|
if self.target.wid == wid {
|
|
|
|
|
if !self.target.is_focused {
|
|
|
|
|
self.target.is_focused = true;
|
|
|
|
|
self.underlay_tx.send(UnderlayEvent::Focus).ok();
|
|
|
|
|
}
|
|
|
|
|
return;
|
|
|
|
@ -189,7 +190,6 @@ impl Runtime {
|
|
|
|
|
self.target.wid = x11rb::NONE;
|
|
|
|
|
|
|
|
|
|
self.target.is_destroyed = false;
|
|
|
|
|
|
|
|
|
|
self.underlay_tx.send(UnderlayEvent::Detach).ok();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|