From: Manuel Nickschas Date: Thu, 3 Apr 2008 13:43:54 +0000 (+0000) Subject: Make X11 selection work correctly (marked text in the ChatWidget now goes into XSelec... X-Git-Tag: 0.2.0-alpha5~25 X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=commitdiff_plain;h=d20a7344ab4774cc8a3a27c3925c2f4922ad07f6;ds=sidebyside Make X11 selection work correctly (marked text in the ChatWidget now goes into XSelection rather than the clipboard on X11 systems) --- diff --git a/src/qtui/chatwidget.cpp b/src/qtui/chatwidget.cpp index 85d8cad6..6c2da6ef 100644 --- a/src/qtui/chatwidget.cpp +++ b/src/qtui/chatwidget.cpp @@ -411,7 +411,11 @@ void ChatWidget::mouseReleaseEvent(QMouseEvent *event) { selectionStart = qMin(dragStartCursor, curCursor); selectionEnd = qMax(dragStartCursor, curCursor); // TODO Make X11SelectionMode configurable! +#ifdef Q_WS_X11 + QApplication::clipboard()->setText(selectionToString(), QClipboard::Selection); +#else QApplication::clipboard()->setText(selectionToString()); +#endif break; case MarkLines: mouseMode = Normal;