* bug#49728: x11 primary selection with mouse
@ 2021-07-25 6:09 Johannes Martinez
2022-08-21 18:19 ` Lars Ingebrigtsen
0 siblings, 1 reply; 4+ messages in thread
From: Johannes Martinez @ 2021-07-25 6:09 UTC (permalink / raw)
To: 49728
[-- Attachment #1: Type: text/plain, Size: 576 bytes --]
Hi, I'm writing a clipboard manager and notice some odd behaviour with
emacs.
It seems to be setting the primary selection while mouse button is down and
not on button up. So what happens is that you're continuously setting the
selection as the user fiddles the mouse the highlight just the text they
want.
I'm guessing this is because you're just using the same code as keyboard
highlighting. doing it only on button up will reduce your traffic quite a
bit... and allow me to not make an ugly hack 4x bigger than the regular
code just to deal with emacs properly.
Thanks.
[-- Attachment #2: Type: text/html, Size: 675 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#49728: x11 primary selection with mouse
2021-07-25 6:09 bug#49728: x11 primary selection with mouse Johannes Martinez
@ 2022-08-21 18:19 ` Lars Ingebrigtsen
[not found] ` <CAKoYpGiAs2i8Uw_3yAtkQhe_OO2HEYSKaRQ_jyupXdpjwBPwGQ@mail.gmail.com>
0 siblings, 1 reply; 4+ messages in thread
From: Lars Ingebrigtsen @ 2022-08-21 18:19 UTC (permalink / raw)
To: Johannes Martinez; +Cc: 49728
Johannes Martinez <spamreceiver23@gmail.com> writes:
> Hi, I'm writing a clipboard manager and notice some odd behaviour with
> emacs. It seems to be setting the primary selection while mouse
> button is down and not on button up. So what happens is that you're
> continuously setting the selection as the user fiddles the mouse the
> highlight just the text they want.
(I'm going through old bug reports that unfortunately weren't resolved
at the time.)
You didn't say what Emacs version you saw this in -- is this still
happening in recent Emacs versions? I had a very quick look at
`gui-set-selection' in Emacs 29, and it seems to be called on mouse-up
there.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-09-19 19:19 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-07-25 6:09 bug#49728: x11 primary selection with mouse Johannes Martinez
2022-08-21 18:19 ` Lars Ingebrigtsen
[not found] ` <CAKoYpGiAs2i8Uw_3yAtkQhe_OO2HEYSKaRQ_jyupXdpjwBPwGQ@mail.gmail.com>
2022-08-22 14:22 ` Lars Ingebrigtsen
2022-09-19 19:19 ` Lars Ingebrigtsen
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.