Function deskulpt::utils::toggle_click_through_state

source ยท
pub(crate) fn toggle_click_through_state<R: Runtime>(
    app_handle: &AppHandle<R>,
) -> Result<(), Error>
Expand description

Toggle the click-through state of the canvas window.

This will toggle whether the canvas window ignores cursor events and update the state accordingly. If the canvas is toggled to not click-through, it will try to regain focus automatically. The function will fail if:

  • The canvas window is not found.
  • Fails to set the canvas to ignore/unignore cursor events.