mirror of
https://github.com/darkrenaissance/darkfi.git
synced 2026-01-08 22:28:12 -05:00
app: do not force window redraw when insets change. this should happen automatic
This commit is contained in:
@@ -187,8 +187,9 @@ impl Window {
|
||||
while let Ok(insets_val) = insets_rx.recv().await {
|
||||
let Some(self_) = me.upgrade() else { break };
|
||||
let atom = &mut self_.render_api.make_guard(gfxtag!("Window::insets_task"));
|
||||
insets.set(atom, &Rectangle::from(insets_val));
|
||||
self_.draw(atom).await;
|
||||
let insets_val = Rectangle::from(insets_val);
|
||||
t!("Insets changed: {insets_val:?}");
|
||||
insets.set(atom, &insets_val);
|
||||
}
|
||||
})
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user