aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2022-11-05 11:18:03 +0100
committerdec05eba <dec05eba@protonmail.com>2022-11-05 11:18:03 +0100
commit3c4deef40ccb57e46e3da30c76dee1e5011d7fd7 (patch)
tree31a394355f7f9fe970f28401d5851982b41df6af /tests
parent1d3eb88461165fcc7ab1d5efde022e6714050806 (diff)
Only allow text in mgl_window_get_clipboard_string
Diffstat (limited to 'tests')
-rw-r--r--tests/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/main.c b/tests/main.c
index f1fad72..ee632a7 100644
--- a/tests/main.c
+++ b/tests/main.c
@@ -292,7 +292,7 @@ int main(int argc, char **argv) {
mgl_window_set_clipboard(&window, str, strlen(str));
fprintf(stderr, "Copied '%s' to the clipboard\n", str);
} else if(event.key.code == MGL_KEY_V) {
- if(mgl_window_get_clipboard(&window, clipboard_callback, NULL)) {
+ if(mgl_window_get_clipboard(&window, clipboard_callback, NULL, MGL_CLIPBOARD_TYPE_ALL)) {
fprintf(stderr, "Successfully copied clipboard!\n");
} else {
fprintf(stderr, "Failed to copy clipboard!\n");