From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Alan Third Newsgroups: gmane.emacs.devel Subject: Re: macOS: Cursor leaving traces when scrolling Date: Sun, 7 Oct 2018 22:35:51 +0100 Message-ID: References: <2D30F998-9417-4B47-955E-702503BF191F@gmail.com> <20181004215834.GB15008@breton.holly.idiocy.org> <20181007111444.GA4777@breton.holly.idiocy.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000009f45010577aa4a68" X-Trace: blaine.gmane.org 1538948083 23302 195.159.176.226 (7 Oct 2018 21:34:43 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 7 Oct 2018 21:34:43 +0000 (UTC) Cc: Emacs-Devel devel To: David Reitter Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Oct 07 23:34:39 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g9Gh8-0005rw-LO for ged-emacs-devel@m.gmane.org; Sun, 07 Oct 2018 23:34:34 +0200 Original-Received: from localhost ([::1]:43575 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g9GjE-00065K-Rz for ged-emacs-devel@m.gmane.org; Sun, 07 Oct 2018 17:36:44 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36260) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g9Gid-00065D-OO for emacs-devel@gnu.org; Sun, 07 Oct 2018 17:36:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g9Gia-0003Hi-KE for emacs-devel@gnu.org; Sun, 07 Oct 2018 17:36:07 -0400 Original-Received: from mail-io1-f44.google.com ([209.85.166.44]:45454) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1g9Gia-0003Ha-DL for emacs-devel@gnu.org; Sun, 07 Oct 2018 17:36:04 -0400 Original-Received: by mail-io1-f44.google.com with SMTP id e12-v6so14446417iok.12 for ; Sun, 07 Oct 2018 14:36:04 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=FaZu4BPc/qyVyXLo93MXxXBZO9DdGlY1kNcextHkFWQ=; b=Px8WNOmGGtXqlXC8QFKyp23dl8dbYLmxOQWOm6N3vG1raqEI77pjwaOMEPjv3fEqdR S+L0D9yiPnSCDm8bgkyHIoxNpPVb7wWz5wdnwUX8PbL/LvaJjdg+jNv6UeO4RgKpm5fG yUKF9Gui4R30Y81DeZIHS/iWSJ4Kvgo4Bz3kSRELXedZx3SrkvqZHG2RvuOoM6/2clKC 3KtANk0U7pRnV5y2ayum69N48+uBoxrLavKvXVJ3DSc0u42hg0bn+X42diK7UtF/ZSad NClrE71hSho6XbPlxzN7jIG8OUQ3y92+OhIYp5zB1Jf3Kk0qRWtC9n3jNLKJwe7/t8LC AU6A== X-Gm-Message-State: ABuFfohr7WD+8k0QltDd9X5HS3/2LAsNSvsUiexGIp8o8lbtoWb2R1OJ VtK/4uYjOepvB2X4B7B3Ig7qLMFaBgcDnbkgae4= X-Google-Smtp-Source: ACcGV63MYaxnmSK1yAEg5uf8Wh3myAOb7aPpWAx4F4LyU8XwhkMbAuJ1rmjVXS+2cjTLEbkaB1g/NPY1iOya66/f8m4= X-Received: by 2002:a6b:3755:: with SMTP id e82-v6mr9959425ioa.14.1538948163649; Sun, 07 Oct 2018 14:36:03 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.85.166.44 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:230275 Archived-At: --0000000000009f45010577aa4a68 Content-Type: text/plain; charset="UTF-8" On Sun, 7 Oct 2018, 22:30 David Reitter, wrote: > On Oct 7, 2018, at 3:31 PM, Alan Third wrote: > > > As you say it would be better to use proper scrolling without > scrollRect, but I don't see any obvious way to do it. I suspect I just > don't have enough knowledge of the cocoa APIs. > > Remove the EmacsScroller machinery (for the Cocoa API), create a > NSScrollView that wraps around the EmacsView (NSView): > > [[scrollView contentView]addSubview: self]; > Wouldn't we need one scrollView for each Emacs window? We'd need to hook into Emacs window resizing and so on. I don't think that's directly exposed to the NS code. > --0000000000009f45010577aa4a68 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable --0000000000009f45010577aa4a68--