diff options
author | dec05eba <dec05eba@protonmail.com> | 2022-11-05 11:18:03 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2022-11-05 11:18:03 +0100 |
commit | 3c4deef40ccb57e46e3da30c76dee1e5011d7fd7 (patch) | |
tree | 31a394355f7f9fe970f28401d5851982b41df6af /tests | |
parent | 1d3eb88461165fcc7ab1d5efde022e6714050806 (diff) |
Only allow text in mgl_window_get_clipboard_string
Diffstat (limited to 'tests')
-rw-r--r-- | tests/main.c | 2 |
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"); |