unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Johannes Martinez <spamreceiver23@gmail.com>
To: 49728@debbugs.gnu.org
Subject: bug#49728: x11 primary selection with mouse
Date: Sun, 25 Jul 2021 02:09:44 -0400	[thread overview]
Message-ID: <CAKoYpGhiRRCTf6yW8TnGejT=JzGzHA82ceSHH6H_=sbOsDipPQ@mail.gmail.com> (raw)

[-- 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 --]

             reply	other threads:[~2021-07-25  6:09 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-25  6:09 Johannes Martinez [this message]
2022-08-21 18:19 ` bug#49728: x11 primary selection with mouse 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAKoYpGhiRRCTf6yW8TnGejT=JzGzHA82ceSHH6H_=sbOsDipPQ@mail.gmail.com' \
    --to=spamreceiver23@gmail.com \
    --cc=49728@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).