unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* 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

* bug#49728: x11 primary selection with mouse
       [not found]   ` <CAKoYpGiAs2i8Uw_3yAtkQhe_OO2HEYSKaRQ_jyupXdpjwBPwGQ@mail.gmail.com>
@ 2022-08-22 14:22     ` Lars Ingebrigtsen
  2022-09-19 19:19       ` Lars Ingebrigtsen
  0 siblings, 1 reply; 4+ messages in thread
From: Lars Ingebrigtsen @ 2022-08-22 14:22 UTC (permalink / raw)
  To: Johannes Martinez; +Cc: 49728

(Please keep the debbugs address in the CCs -- otherwise it won't reach
the bug tracker.)

Johannes Martinez <spamreceiver23@gmail.com> writes:

> that was quite a while ago so I don't know.  whatever was current in Ubuntu at the
> time.
>
> emacs 29 still isn't avalaible there.

Can you reproduce it with whatever is current in Ubuntu now?





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#49728: x11 primary selection with mouse
  2022-08-22 14:22     ` Lars Ingebrigtsen
@ 2022-09-19 19:19       ` Lars Ingebrigtsen
  0 siblings, 0 replies; 4+ messages in thread
From: Lars Ingebrigtsen @ 2022-09-19 19:19 UTC (permalink / raw)
  To: Johannes Martinez; +Cc: 49728

Lars Ingebrigtsen <larsi@gnus.org> writes:

> Can you reproduce it with whatever is current in Ubuntu now?

More information was requested, but no response was given within a
month, so I'm closing this bug report.  If the problem still exists,
please respond to this email and we'll reopen the bug report.





^ 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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).