Fix X11 selections (#55)

This fixes all the issues with the X11 selection in addition to switching the clipboard to always be UTF-8.
This commit is contained in:
DS
2021-08-30 21:44:56 +02:00
committed by GitHub
parent 75b4c05741
commit 9c4b6f25ab
6 changed files with 245 additions and 83 deletions

View File

@ -27,10 +27,11 @@ public:
virtual const core::stringc& getOperatingSystemVersion() const _IRR_OVERRIDE_;
//! copies text to the clipboard
virtual void copyToClipboard(const c8* text) const _IRR_OVERRIDE_;
//! \param text: text in utf-8
virtual void copyToClipboard(const c8 *text) const _IRR_OVERRIDE_;
//! gets text from the clipboard
//! \return Returns 0 if no string is in there.
//! \return Returns 0 if no string is in there, otherwise an utf-8 string.
virtual const c8* getTextFromClipboard() const _IRR_OVERRIDE_;
//! gets the total and available system RAM in kB