workaround for clients that do not flush clipboard before setting it

This commit is contained in:
Ivan Sorokin
2023-01-06 15:09:04 +03:00
parent 1a041028c1
commit d8706714be
+4
View File
@@ -3559,6 +3559,10 @@ static void do_osc(Terminal *term)
if (OpenClipboard(NULL)) {
// some clients don't flush the buffer before setting data,
// so we'll do that here just in case
EmptyClipboard();
if (!SetClipboardData(fmt, (HANDLE)hData)) {
GlobalFree(hData);
} else {