aboutsummaryrefslogtreecommitdiff
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
parenta93ab69dc85a1e4898ccedcad1e59da0986acaa5 (diff)
Only allow text in mgl_window_get_clipboard_string
m---------depends/mgl0
-rw-r--r--src/window/Window.cpp2
2 files changed, 1 insertions, 1 deletions
diff --git a/depends/mgl b/depends/mgl
-Subproject 1d3eb88461165fcc7ab1d5efde022e671405080
+Subproject 3c4deef40ccb57e46e3da30c76dee1e5011d7fd
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() {