hotfix: race condition when activating clients

This commit is contained in:
Ferdinand Schober
2024-05-07 11:18:15 +02:00
parent ba6abafe75
commit b8cc9e2197

View File

@@ -67,8 +67,8 @@ impl Window {
return; return;
}; };
let client = client.downcast_ref::<ClientObject>().unwrap(); let client = client.downcast_ref::<ClientObject>().unwrap();
window.request_client_activate(client, active);
window.request_client_update(client); window.request_client_update(client);
window.request_client_activate(client, active)
})); }));
row.connect_closure("request-delete", false, closure_local!(@strong window => move |row: ClientRow| { row.connect_closure("request-delete", false, closure_local!(@strong window => move |row: ClientRow| {
let index = row.index() as u32; let index = row.index() as u32;
@@ -177,7 +177,7 @@ impl Window {
if state.resolving != data.resolving { if state.resolving != data.resolving {
client_object.set_resolving(state.resolving); client_object.set_resolving(state.resolving);
log::debug!("resolving {}: {}", data.handle, state.active); log::debug!("resolving {}: {}", data.handle, state.resolving);
} }
self.update_dns_state(handle, !state.ips.is_empty()); self.update_dns_state(handle, !state.ips.is_empty());