summaryrefslogtreecommitdiffstats
path: root/client/windows/platform.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'client/windows/platform.cpp')
-rw-r--r--client/windows/platform.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/client/windows/platform.cpp b/client/windows/platform.cpp
index 580a40ae..075d2690 100644
--- a/client/windows/platform.cpp
+++ b/client/windows/platform.cpp
@@ -859,6 +859,11 @@ void WinPlatform::exit_modal_loop()
int Platform::_clipboard_owner = Platform::owner_none;
+void Platform::set_clipboard_owner_unlocked(int new_owner)
+{
+ set_clipboard_owner(new_owner);
+}
+
void Platform::set_clipboard_owner(int new_owner)
{
if (new_owner == owner_none) {
@@ -885,6 +890,8 @@ bool Platform::on_clipboard_grab(uint32_t *types, uint32_t type_count)
EmptyClipboard();
SetClipboardData(format, NULL);
CloseClipboard();
+
+ set_clipboard_owner(owner_guest);
return true;
}