Skip to content

armgit / muxin

Public Imported from GitHub
0

All your machines, one app. For you and your AI agents: agent sessions, desktops, files, logs and GitHub across your Macs, Linux and Windows machines, with an MCP server.

Dialogs stay open when you click beside them

Adib Hanna79eecd943a04
diff --git a/src/ui/root.rs b/src/ui/root.rs
index 1a3c715..d8d3b70 100644
--- a/src/ui/root.rs
+++ b/src/ui/root.rs
@@ -3459,21 +3459,10 @@ impl Render for Root {
.flex()
.justify_center()
.pt(px(modal_top))
+ // Blocks the page; a click beside the dialog doesn't close it
+ // (and lose what was typed): Cancel, Escape or finishing it do.
.occlude()
- .on_click(cx.listener(|this, _, window, cx| {
- this.modal = None;
- window.focus(&this.focus);
- cx.notify()
- }))
- .child(
- div()
- .id("modal")
- .max_h(px(modal_max_height))
- .overflow_y_scroll()
- .rounded(px(10.))
- .on_click(|_, _, cx| cx.stop_propagation())
- .child(modal),
- ),
+ .child(div().id("modal").max_h(px(modal_max_height)).overflow_y_scroll().rounded(px(10.)).child(modal)),
)
})
// Over everything, dialogs too: the edges to resize the window from.