summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGUI/Clipboard.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Libraries/LibGUI/Clipboard.cpp')
-rw-r--r--Userland/Libraries/LibGUI/Clipboard.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/Userland/Libraries/LibGUI/Clipboard.cpp b/Userland/Libraries/LibGUI/Clipboard.cpp
index d1f51b7794..844f7adaf1 100644
--- a/Userland/Libraries/LibGUI/Clipboard.cpp
+++ b/Userland/Libraries/LibGUI/Clipboard.cpp
@@ -78,6 +78,11 @@ void Clipboard::set_data(ReadonlyBytes data, const String& type, const HashMap<S
connection().async_set_clipboard_data(move(buffer), type, metadata);
}
+void Clipboard::clear()
+{
+ connection().async_set_clipboard_data({}, {}, {});
+}
+
void ClipboardServerConnection::clipboard_data_changed(String const& mime_type)
{
auto& clipboard = Clipboard::the();