new parameter of dataexch

This commit is contained in:
Jinhao
2016-12-06 02:21:12 +08:00
parent c0c3cfebe8
commit c1cfd283e2
5 changed files with 5723 additions and 5727 deletions

View File

@@ -1131,6 +1131,7 @@ namespace detail
void platform_spec::write_selection(native_window_type owner, Atom type, const void * buf, size_t bufsize)
{
platform_scope_guard psg;
::XSetSelectionOwner(display_, XA_PRIMARY, reinterpret_cast<Window>(owner), CurrentTime);
::XSetSelectionOwner(display_, atombase_.clipboard, reinterpret_cast<Window>(owner), CurrentTime);
::XFlush(display_);
if(XA_STRING == type || atombase_.utf8_string == type)