fix clipboard
All checks were successful
pyrite-dev/milsko/pipeline/head This commit looks good

This commit is contained in:
IoIxD 2026-03-23 13:38:26 -07:00
commit f4072bcb3f
2 changed files with 6 additions and 4 deletions

View file

@ -29,7 +29,6 @@ void clipboard(MwWidget handle, void* user_data, void* call_data) {
(void)handle;
(void)user_data;
printf("got: %s\n", clipboard);
if(clipboard != NULL) {
MwVaApply(text, MwNtext, clipboard, NULL);
MwForceRender(text);
@ -52,6 +51,8 @@ int main() {
MwAddUserHandler(window, MwNresizeHandler, resize, NULL);
MwAddUserHandler(window, MwNclipboardHandler, clipboard, NULL);
MwAddUserHandler(instructions, MwNclipboardHandler, clipboard, NULL);
MwAddUserHandler(text, MwNclipboardHandler, clipboard, NULL);
resize(window, NULL, NULL);