From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#70038: 29.3.50; Shift up/down in buffer with images on M-x other-window with some fonts Date: Thu, 28 Mar 2024 07:58:46 +0200 Message-ID: <86zfuihp7t.fsf@gnu.org> References: <87ttkrl8w1.fsf@gmail.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5459"; mail-complaints-to="usenet@ciao.gmane.io" Cc: rahguzar@zohomail.eu, 70038@debbugs.gnu.org To: Ramon Diaz-Uriarte Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Mar 28 06:59:24 2024 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 1rpinL-0001BH-SD for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 28 Mar 2024 06:59:23 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rpin1-0005p1-0L; Thu, 28 Mar 2024 01:59:03 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rpimz-0005or-LZ for bug-gnu-emacs@gnu.org; Thu, 28 Mar 2024 01:59:01 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rpimz-00050X-DK for bug-gnu-emacs@gnu.org; Thu, 28 Mar 2024 01:59:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rpimz-0002fS-To for bug-gnu-emacs@gnu.org; Thu, 28 Mar 2024 01:59:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 28 Mar 2024 05:59:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 70038 X-GNU-PR-Package: emacs Original-Received: via spool by 70038-submit@debbugs.gnu.org id=B70038.171160553910246 (code B ref 70038); Thu, 28 Mar 2024 05:59:01 +0000 Original-Received: (at 70038) by debbugs.gnu.org; 28 Mar 2024 05:58:59 +0000 Original-Received: from localhost ([127.0.0.1]:38790 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rpimx-0002fB-7M for submit@debbugs.gnu.org; Thu, 28 Mar 2024 01:58:59 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48390) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rpimu-0002eZ-Fy for 70038@debbugs.gnu.org; Thu, 28 Mar 2024 01:58:58 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rpimn-000502-Qq; Thu, 28 Mar 2024 01:58:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=5JO6O0Cmd1aCrC50YP+mZXuTOAZbXXkhV16WDRH9ac8=; b=A5UiPrNUYoi9 V5cYwXfyWHRpkU8Bm4CxQRcB/0eAqP4NsHP25wwUogooH3MRxE8AnLuyL+XE59If1aiajtnJ5JeHg RZeI30a4weG93p7aG/2KxbB56M9/WV/La3oabD21lpYdlRlFB76ksP+4MJ7rfa47SpIAV7gOOaX1c i0lT3otCQcNxcS9GwzrQvVo79UuxBfe8XLEKYB+qM73xw3DdlJHcpJFIK0aqvpBjSq2ITTOm3j01D L3gkwvq0hdGxoDEehCYL416qiUiipYMmilJJnJvK0UihccMi+HIAIhotDuTFtGrHIQw3u2lP1hORf tPYPIGyi2L4tlyjuFJzCfg==; In-Reply-To: <87ttkrl8w1.fsf@gmail.com> (message from Ramon Diaz-Uriarte on Wed, 27 Mar 2024 21:25:34 +0100) 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:282173 Archived-At: > Cc: Rahguzar , Ramon Diaz-Uriarte > From: Ramon Diaz-Uriarte > Date: Wed, 27 Mar 2024 21:25:34 +0100 > > With some fonts, changing focus (M-x other-window) from a buffer with images, makes the content in the buffer with images to shift up and down. > > I am seeing this in Debian, with both the GTK and Lucid builds, under X11. > > The code below reproduces the problem. This problem has been identified while debugging a change on focus issue with pdf-tools (https://github.com/vedang/pdf-tools/pull/224#issuecomment-2014151358 and ff.) Crystal ball says that this happens because when a frame loses focus, we redraw the cursor as a hollow rectangle, and (for boring technical reasons, which I can explain if someone wants to know) that hollow cursor can have a different height than the block cursor we draw on a selected frame. You can verify this guess of mine if you customize cursor-type to one of the non-default values -- the problem should go away for any cursor-type but the default one. If my guess is correct, fixing this is not easy (but patches are welcome, of course), and at the time I decided to leave this rare case be.