Documentation
¶
Overview ¶
Command modalprobe live-verifies native window-modality for window-hosted dialogs (#498/#681). It opens a parent window with interactive content, then a window-hosted modal dialog over it. While the dialog is up the OS should block the parent: on Windows its title bar greys and it rejects input (EnableWindow), on X11 the dialog carries _NET_WM_STATE_MODAL, on Wayland an xdg_dialog_v1 is set modal (compositor-dependent), and on macOS the parent cannot become key (canBecomeKeyWindow=NO).
Usage:
go run ./hack/modalprobe # open the modal automatically after show go run ./hack/modalprobe -manual # wait for the button tap instead go run ./hack/modalprobe -stacked # open two modals over one parent
The parent window is titled "modalprobe-parent" and each dialog window "modalprobe-dialog-N" so an introspector (xprop, IsWindowEnabled, AX) can target them by title.