From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Drawing dirty rectangles with expose_window: row->clip = fr Date: Tue, 02 Apr 2019 19:51:49 +0300 Message-ID: <83ftr0fize.fsf@gnu.org> References: Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="12308"; mail-complaints-to="usenet@blaine.gmane.org" Cc: emacs-devel@gnu.org To: Keith David Bershatsky Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Apr 02 18:52:23 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 1hBMe6-000330-Or for ged-emacs-devel@m.gmane.org; Tue, 02 Apr 2019 18:52:22 +0200 Original-Received: from localhost ([127.0.0.1]:57357 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hBMe5-0005c6-MO for ged-emacs-devel@m.gmane.org; Tue, 02 Apr 2019 12:52:21 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:43267) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hBMdP-0005bo-PT for emacs-devel@gnu.org; Tue, 02 Apr 2019 12:51:40 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:43000) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hBMdO-0006lF-D5; Tue, 02 Apr 2019 12:51:38 -0400 Original-Received: from [176.228.60.248] (port=4644 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hBMdM-0003Lu-7k; Tue, 02 Apr 2019 12:51:38 -0400 In-reply-to: (message from Keith David Bershatsky on Tue, 02 Apr 2019 09:27:44 -0700) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:234878 Archived-At: > Date: Tue, 02 Apr 2019 09:27:44 -0700 > From: Keith David Bershatsky > Cc: emacs-devel@gnu.org > > In this example, there is one frame with two windows in a top/bottom equal split. The top window (*scratch*) does not have any fake cursors. The bottom window (*MC-TEST*) does have fake cursors. It appears that expose_window is drawing the mode-line of the top window, and the rectangle extends down into the first line of the bottom window that has fake cursors. The fake cursors draw on the first line of the bottom window, but the glyphs do not draw on top of the box/hollow cursors. This happens at the section of expose_window where it has the comment: > > /* Display the mode line if there is one. */ I don't think I understand you answer. What is the height of the mode line? is it 16 pixels or less? IOW, how do you conclude that the rectangle 'fr' extends beyond the mode line? I also don't understand the meaning of this part: The fake cursors draw on the first line of the bottom window, but the glyphs do not draw on top of the box/hollow cursors. Which glyphs "do not draw on top of the box/hollow cursors"?