Edwin Leuven wrote:
> PS i was finally too annoyed by lyx's clipboard behavior (klipper in kde
> was hanging etc...) so i removed the line above, made the changes below,
> and life has been better since...

I agree that LyX's interaction with klipper is a PITA. Can you explain the
implications of the changes below? What changes, other than klipper being
happy?

>   string const QWorkArea::getClipboard() const
>   {
> -#if QT_VERSION >= 300
> - QApplication::clipboard()->setSelectionMode(true);
> -#endif
> - QString str = QApplication::clipboard()->text();
> + QString str = QApplication::clipboard()->text(QClipboard::Clipboard );
>   if (str.isNull())
>   return string();
>   return fromqstr(str);
> 
>   void QWorkArea::putClipboard(string const & str) const
>   {
> -#if QT_VERSION >= 300
> - QApplication::clipboard()->setSelectionMode(true);
> -#endif
> - QApplication::clipboard()->setText(toqstr(str));
> + QApplication::clipboard()->setText(toqstr(str),QClipboard::Clipboard );
>   }

-- 
Angus

Reply via email to