pub fn clear(clipboard: ClipboardType, seat: Seat) -> Result<(), Error>
Expand description

Clears the clipboard for the given seat.

If seat is None, clears clipboards of all existing seats.

Examples

use wl_clipboard_rs::{copy::{clear, ClipboardType, Seat}};

clear(ClipboardType::Regular, Seat::All)?;