From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Johannes Martinez Newsgroups: gmane.emacs.bugs Subject: bug#49728: x11 primary selection with mouse Date: Sun, 25 Jul 2021 02:09:44 -0400 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000fafc8305c7e92189" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2406"; mail-complaints-to="usenet@ciao.gmane.io" To: 49728@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jul 25 07:03:10 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m7WI9-0000V0-WD for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 25 Jul 2021 07:03:10 +0200 Original-Received: from localhost ([::1]:58990 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m7WI8-00059M-Mr for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 25 Jul 2021 01:03:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37390) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m7WI2-00058v-OF for bug-gnu-emacs@gnu.org; Sun, 25 Jul 2021 01:03:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:35783) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m7WI2-0004RD-GL for bug-gnu-emacs@gnu.org; Sun, 25 Jul 2021 01:03:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1m7WI2-0005WT-0Y for bug-gnu-emacs@gnu.org; Sun, 25 Jul 2021 01:03:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Johannes Martinez Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 25 Jul 2021 05:03:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 49728 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.162718932421158 (code B ref -1); Sun, 25 Jul 2021 05:03:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 25 Jul 2021 05:02:04 +0000 Original-Received: from localhost ([127.0.0.1]:47329 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m7WH6-0005VC-Cn for submit@debbugs.gnu.org; Sun, 25 Jul 2021 01:02:04 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:46476) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m7WGa-0005U7-WA for submit@debbugs.gnu.org; Sun, 25 Jul 2021 01:01:37 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37298) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m7WGa-00055t-NW for bug-gnu-emacs@gnu.org; Sun, 25 Jul 2021 01:01:32 -0400 Original-Received: from havoc.proulx.com ([96.88.95.61]:41078) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m7WGY-0003BQ-Ph for bug-gnu-emacs@gnu.org; Sun, 25 Jul 2021 01:01:32 -0400 Original-Received: by havoc.proulx.com (Postfix, from userid 1027) id A82F84B5; Sat, 24 Jul 2021 23:01:29 -0600 (MDT) Authentication-Results: havoc.proulx.com; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="S/C61AzN"; dkim-atps=neutral Resent-From: Mailing List Manager Resent-Date: Sat, 24 Jul 2021 23:01:29 -0600 Resent-Message-ID: <20210725050129.GA27517@havoc.proulx.com> Resent-To: bug-gnu-emacs@gnu.org Original-Received: from lists.gnu.org ([209.51.188.17]:42674) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m7TaY-0007jr-MU for submit@debbugs.gnu.org; Sat, 24 Jul 2021 22:10:02 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54848) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m7TaY-0001kE-HJ for bug-gnu-emacs@gnu.org; Sat, 24 Jul 2021 22:09:58 -0400 Original-Received: from mail-il1-x132.google.com ([2607:f8b0:4864:20::132]:37455) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m7TaW-0008OK-TD for bug-gnu-emacs@gnu.org; Sat, 24 Jul 2021 22:09:58 -0400 Original-Received: by mail-il1-x132.google.com with SMTP id l11so5320066iln.4 for ; Sat, 24 Jul 2021 19:09:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=44HCz0W+HGVK2B0D5UKCLAwf1sWkl0D9yxHHmLN/JvY=; b=S/C61AzNTHWdXnDuD4GV/T1XeLZsr5p35dgAAjjUpV1W06gXFh+/Zvr75UffsmO9Av PdL20f2oDcFIsUrqQhvg4dOpQsYO0zMOXg2nTeopWH+glY0X5dkbKg6mt71BwaAS6urN HOITwznf1gs6LwiTaAGTp5iqKPogfswXbqqD+dOYnYtVnun8LrkWkEmLuyKfdL5MtPCR qi5HvRoPPlTxLkcqrS8KqkUjLFeSS8i87BZ9i+ZRdGB+rIpXtTWW//OtD5jmKZ5nzWf0 cJ5kRdQRbNpXhPRWjIkk4s7RzI9mrLSH7X50xMfFP00wMULCcKOi6gPTRLCWibk57gjW xOTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=44HCz0W+HGVK2B0D5UKCLAwf1sWkl0D9yxHHmLN/JvY=; b=TjvyTsvSV0fc+QVR0QF0wyvrueigeSGC1ZRJHH0qkkjpcMLWS3PRgexhFxA8BUjS+y 4Q0kFUCv5powri9EByLZlDCpDy/NE0VxygcceO5zafb/Vl3byzoDOhm2IQxafudeNEL+ z2IYGTFQrdh12+r/Ul9AqQ6KdWoABqR035Mqc23VpnZHbpGAkIUSKRlSF8EgSODbPXC3 ZVfa1Y35lAqxxBY5GIX1y4+Z8+zr7z/WK8GNIgFfdNneXjs+fDVmDHHzFcTECJWhwzA/ 1fN/xFW0d6bMlksZAjH2mDw9st/X1h77cv21tH7ALRzRX0vGh7J219Eh6qBW5hMLgVWI ZTUg== X-Gm-Message-State: AOAM5331qTifVFDmgrGqGDGzg7nkUyi8uEs7ZwyItkX+zROyFPuBorPc cs8G38qKunlg71150K+un7QWOQHUe0auQvsUlwTgwgdqvT8= X-Google-Smtp-Source: ABdhPJzj9VNy2gwDNGdp5fngJJjCA5Tz1/sbprWCRTxtGGwFSF95A87PIGmwShKX/BsPoQ9ZsJDgrEREjQN5IaTWq28= X-Received: by 2002:a92:c64a:: with SMTP id 10mr8231352ill.159.1627178994956; Sat, 24 Jul 2021 19:09:54 -0700 (PDT) Received-SPF: pass client-ip=2607:f8b0:4864:20::132; envelope-from=spamreceiver23@gmail.com; helo=mail-il1-x132.google.com X-Spam_action: no action Received-SPF: pass client-ip=96.88.95.61; envelope-from=mlmgr@proulx.com; helo=havoc.proulx.com X-Spam_score_int: 9 X-Spam_score: 0.9 X-Spam_bar: / X-Spam_report: (0.9 / 5.0 requ) BAYES_50=0.8, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.248, HK_RANDOM_ENVFROM=0.001, HTML_MESSAGE=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sun, 25 Jul 2021 01:02:03 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:210675 Archived-At: --000000000000fafc8305c7e92189 Content-Type: text/plain; charset="UTF-8" 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. --000000000000fafc8305c7e92189 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi, I'm writing a clipboard manager and notice so= me odd behaviour with emacs.
It seems to be setting the primary s= election while mouse button is down and not on button up. So what happens i= s that you're continuously setting the selection as the user fiddles th= e mouse the highlight just the text they want.

I&#= 39;m guessing this is because you're=C2=A0 just using the same code as = keyboard highlighting.=C2=A0 doing it only on button up will reduce your tr= affic quite a bit... and allow me to not make an ugly hack 4x bigger than t= he regular code just to deal with emacs properly.
Thanks.
--000000000000fafc8305c7e92189--