+//! gets text from the primary selection\r
+//! \return Returns 0 if no string is in there, otherwise utf-8 text.\r
+const c8 *CIrrDeviceLinux::getTextFromPrimarySelection() const\r
+{\r
+#if defined(_IRR_COMPILE_WITH_X11_)\r
+ return getTextFromSelection(XA_PRIMARY, PrimarySelection);\r
+#else\r
+ return nullptr;\r
+#endif\r
+}\r
+\r
+#if defined(_IRR_COMPILE_WITH_X11_)\r
+bool CIrrDeviceLinux::becomeSelectionOwner(Atom selection) const\r
+{\r
+ XSetSelectionOwner (XDisplay, selection, XWindow, CurrentTime);\r
+ XFlush (XDisplay);\r
+ Window owner = XGetSelectionOwner(XDisplay, selection);\r
+ return owner == XWindow;\r
+}\r
+#endif\r
+\r