modalprobe

command
v1.3.0-rc.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 15, 2026 License: BSD-3-Clause Imports: 9 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Command modalprobe live-verifies native window-modality for window-hosted dialogs (pre-rebrand tracker #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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL