workaround for clients that do not flush clipboard before setting it 2/2
This commit is contained in:
@@ -3560,6 +3560,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 {
|
||||
|
||||
Reference in New Issue
Block a user