From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Keith David Bershatsky Newsgroups: gmane.emacs.devel Subject: Adding fake cursors when resizing a window. Date: Wed, 06 Mar 2019 19:42:16 -0800 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="178555"; mail-complaints-to="usenet@blaine.gmane.org" To: Emacs Devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Mar 07 04:44:21 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h1jxE-000kKY-4m for ged-emacs-devel@m.gmane.org; Thu, 07 Mar 2019 04:44:21 +0100 Original-Received: from localhost ([127.0.0.1]:44571 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h1jxC-0001cy-Dk for ged-emacs-devel@m.gmane.org; Wed, 06 Mar 2019 22:44:18 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:58109) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h1jvV-0000Kj-3L for emacs-devel@gnu.org; Wed, 06 Mar 2019 22:42:33 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h1jvU-0008W0-1X for emacs-devel@gnu.org; Wed, 06 Mar 2019 22:42:33 -0500 Original-Received: from gateway36.websitewelcome.com ([50.116.127.2]:43493) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1h1jvT-0007zp-Ib for emacs-devel@gnu.org; Wed, 06 Mar 2019 22:42:31 -0500 Original-Received: from cm10.websitewelcome.com (cm10.websitewelcome.com [100.42.49.4]) by gateway36.websitewelcome.com (Postfix) with ESMTP id 89987400C784F for ; Wed, 6 Mar 2019 20:57:46 -0600 (CST) Original-Received: from gator3053.hostgator.com ([50.87.144.69]) by cmsmtp with SMTP id 1jvFh9jva2PzO1jvFhYJwf; Wed, 06 Mar 2019 21:42:17 -0600 X-Authority-Reason: nr=8 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lawlist.com ; s=default; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:To :From:Message-ID:Date:Sender:Reply-To:Cc:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=9v3VdRykSFmbIvgob1SBSgPjTsDD0eWsxle6BxUy2ao=; b=ZV7e0MpsPSYdWggW6pqPdCAn+D K55i8cKqRwMn9TcjBtmXwkcpT4Z9tM2I3M1WrqysoM5XHV+5UkoZenFMGxd+no0lWzNptDaCf3BB9 ygWU6OBzWQkf3Twb84qmmIW8gOgdG/VQNRSQq/NAiSNy5bwv7rrfcCI/wAasg2burMnGYWjNlO/98 LzFLAHWVgyk9nC6jrJeEG71M2DcVdhPKAIG0QX/1vJpeqiLOTb7yVNtxE0qpdXRpN6QDpsDc4+0nw pkpg8O7efZTUsWTj4vjW/nnyGLF2SUjGBuugzNWuAf08z1/MXfOJFmnY/Fw2GTRbfsZdUheQCWISA b2fr+/MQ==; Original-Received: from cpe-45-48-239-195.socal.res.rr.com ([45.48.239.195]:51750 helo=server.local) by gator3053.hostgator.com with esmtpsa (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.91) (envelope-from ) id 1h1jvF-000uoD-0e for emacs-devel@gnu.org; Wed, 06 Mar 2019 21:42:17 -0600 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - gator3053.hostgator.com X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - lawlist.com X-BWhitelist: no X-Source-IP: 45.48.239.195 X-Source-L: No X-Exim-ID: 1h1jvF-000uoD-0e X-Source-Sender: cpe-45-48-239-195.socal.res.rr.com (server.local) [45.48.239.195]:51750 X-Source-Auth: lawlist X-Email-Count: 1 X-Source-Cap: bGF3bGlzdDtsYXdsaXN0O2dhdG9yMzA1My5ob3N0Z2F0b3IuY29t X-Local-Domain: yes X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 50.116.127.2 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:233880 Archived-At: I am working on optimization of feature requests #22873 (multiple fake curs= ors) and #17684 (crosshairs that track the cursor position, and a visible f= ill column indicator). The current design erases fake cursor before draw_glyphs is called, and the= n adds back the fake cursors with updated coordinates subsequent thereto. Fact Pattern: Two-window left/right split with vertical scroll bars on eac= h window. The user deletes the right window and the left window increases = in size to fill the entire frame. update_window is called and all of the f= ake get erased at the outset using the window's current_matrix before scrol= ling_window is called. Then, draw_glyphs does its thing on the relevant li= nes and fake cursors are laid on each relevant line subsequent thereto. =46rom what I can tell, it appears that draw_glyphs is able to write glyphs= _underneath_ the vertical scroll bar in the center of the screen (that is = about to be removed). However, drawing a rectangle (to create a fake curso= r) from nsterm.m cannot write a fake cursor _underneath_ the vertical scrol= l bar in the center of the screen (that is about to be removed). When the = vertical scroll bar is removed from the center of the screen, the area wher= e the fake cursor could not be drawn is readily apparent. One of my thoughts on dealing with this issue is to remove the vertical scr= oll bar (splitting the 2 windows) before update_window runs. Q: Is my guess about what is happening correct? And, when is the best/ear= liest point in time to draw the fake cursors in the area where the vertical= scroll bar will be removed? SCREENSHOT -- BEFORE: https://www.lawlist.com/images/before_03_06_2019.png SCREENSHOT -- AFTER: https://www.lawlist.com/images/after_03_06_2019.png