///////////////////////////////////////////////////////
| 156 | |
| 157 | //////////////////////////////////////////////////////////// |
| 158 | void ClipboardImpl::setStringImpl(const String& text) |
| 159 | { |
| 160 | m_clipboardContents = text; |
| 161 | |
| 162 | // Set our window as the current owner of the selection |
| 163 | XSetSelectionOwner(m_display.get(), m_clipboard, m_window, CurrentTime); |
| 164 | |
| 165 | // Check if setting the selection owner was successful |
| 166 | if (XGetSelectionOwner(m_display.get(), m_clipboard) != m_window) |
| 167 | err() << "Cannot set clipboard string: Unable to get ownership of X selection" << std::endl; |
| 168 | } |
| 169 | |
| 170 | |
| 171 | //////////////////////////////////////////////////////////// |