mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-23 20:26:09 +03:00

Fixes https://github.com/ghostty-org/ghostty/issues/4947 for gtk This PR implements the senstive content hiding when displaying the paste confirmation dialog in secure input mode. Following changes are implemented: - in the blueprint for each dialog add a show/hide button that is not visible by default, and a Revealer that is revealed by default - save the `secure_input` action value for each surface in the GTK apprt - pass the value when initializing the paste confirmation dialog - in the dialog code, alter the visibility of the content and reveal/hide buttons based on secure input flag value Demo: https://github.com/user-attachments/assets/c91cbd3d-ed3b-464d-b4cf-e51fe7aa23b7 I feel like this is already a nearly full implementation, but I'm leaving this as a draft for now, since i need to look into blueprints for Adwaita 1.2, and verify if it behaves properly when the dialog is in not-sensitive input mode and in OSC52 mode.