[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libreoffice-design] Fwd: How do various apps and DEs handle the primary selection?
- Subject: [libreoffice-design] Fwd: How do various apps and DEs handle the primary selection?
- From: Jan-Marek Glogowski <firstname.lastname@example.org>
- Date: Mon, 8 Jul 2019 01:10:55 +0200
- To: email@example.com
Forgot to CC design. Please reply also on the dev list.
-------- Weitergeleitete Nachricht --------
Betreff: How do various apps and DEs handle the primary selection?
Datum: Mon, 8 Jul 2019 01:07:38 +0200
Von: Jan-Marek Glogowski <firstname.lastname@example.org>
An: libreoffice-dev <LibreOffice@lists.freedesktop.org>
I'm trying to gather information how various apps handle the primary selection,
so I can fix tdf#104717 . There is already a patch for that in Gerrit.
The KDE applications I tested keep the primary alive, while they are running and
just clear it when they close. So I can select some text in kate and it'll stay
in the primary even, if I close the document containing the selected text.
AFAIK at least Writer, Calc and Draw use TransferableHelper::ClearSelection to
clear the selection. Writer clears the selection in many more places then either
Calc or Draw. See
$ git grep -B 5 -A 5 SwTransferable::ClearSelection sw
And Writer clears it when a Shell closes, while Calc (~ScTabView) and Draw
(:~View) clear it when the view is closed. But I'm a bit confused by the terms
Shell and View and then there is even a ViewShell...
IMHO we shouldn't handle the primary selection lifetime different from the
clipboard lifetime. When selecting stuff, the primary should stay alive, even if
I close the document or module, just like the normal clipboard. I don't see a
point of clearing the selection at all, except on application shutdown, when the
application won't be able to serve it anymore.
How do other applications you know handle the primary selection?
P.S. I use
$ watch -n 1 "xclip -selection clipboard -out; echo; xclip -selection primary -out"
to monitor the clibboard status. And if you want to test stuff, be sure to
disable clipboard managers, as these often copy stuff between the different
clipboards, also resulting in tdf#104717.
LibreOffice mailing list
To unsubscribe e-mail to: email@example.com
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/global/design/
- Prev by Date: [libreoffice-design] Minutes from the UX/design meeting 2019-Jun-26
- Next by Date: [libreoffice-design] Agenda for the design/UX meeting 2019-JUL-10 (WED)
- Previous by thread: [libreoffice-design] Minutes from the UX/design meeting 2019-Jun-26
- Next by thread: [libreoffice-design] Agenda for the design/UX meeting 2019-JUL-10 (WED)