base: cut copy fixes

This commit is contained in:
luboslenco
2026-07-16 20:05:41 +02:00
parent a232db8e9b
commit c7ff0d237e
10 changed files with 36 additions and 62 deletions
+2 -6
View File
@@ -840,15 +840,11 @@ static bool _handle_messages() {
}
else if (controlDown && (ksKey == XK_c || ksKey == XK_C)) {
XSetSelectionOwner(x11_ctx.display, CLIPBOARD, window, CurrentTime);
char *text = iron_internal_copy_callback();
if (text != NULL)
iron_copy_to_clipboard(text);
iron_internal_copy_callback();
}
else if (controlDown && (ksKey == XK_x || ksKey == XK_X)) {
XSetSelectionOwner(x11_ctx.display, CLIPBOARD, window, CurrentTime);
char *text = iron_internal_cut_callback();
if (text != NULL)
iron_copy_to_clipboard(text);
iron_internal_cut_callback();
}
if (event.xkey.keycode == ignoreKeycode) {