aboutsummaryrefslogtreecommitdiff
path: root/src/window
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2022-11-05 11:18:17 +0100
committerdec05eba <dec05eba@protonmail.com>2022-11-05 11:18:17 +0100
commitd04c98708fd46524c0861baf65e9e4ff62d48792 (patch)
tree8c7ab7735bd2bfcc7f4f8e7fd8e973a455a0073b /src/window
parenta93ab69dc85a1e4898ccedcad1e59da0986acaa5 (diff)
Only allow text in mgl_window_get_clipboard_string
Diffstat (limited to 'src/window')
-rw-r--r--src/window/Window.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/window/Window.cpp b/src/window/Window.cpp
index ec187e3..64ee9fe 100644
--- a/src/window/Window.cpp
+++ b/src/window/Window.cpp
@@ -144,7 +144,7 @@ namespace mgl {
}
bool Window::get_clipboard(ClipboardCallback callback) {
- return mgl_window_get_clipboard(&window, clipboard_callback_interface, &callback);
+ return mgl_window_get_clipboard(&window, clipboard_callback_interface, &callback, MGL_CLIPBOARD_TYPE_ALL);
}
std::string Window::get_clipboard_string() {