Skip to content

Commit 2e92817

Browse files
committed
refactor(pin): use the new TogglePinWindow
1 parent ceda493 commit 2e92817

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/utils.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,8 @@ pub fn send_request(socket: Option<&str>, request: &str, message: &str) -> Resul
101101
pub fn set_pin(client: &Client, set_to: bool) -> Result<()> {
102102
if client.pinned != set_to {
103103
hyprland::dispatch!(
104-
Custom,
105-
"pin",
106-
format!("address:{}", client.address).as_str()
104+
TogglePinWindow,
105+
WindowIdentifier::Address(client.address.clone())
107106
)?;
108107
}
109108
Ok(())

0 commit comments

Comments
 (0)