GNU logs - #70697, boring messages


Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#70697: 30.0.50; Frame parameter alpha-background is ignored for fringe bitmaps & internal borders
Resent-From: Aleksandar Dimitrov <mail@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Wed, 01 May 2024 12:02:02 +0000
Resent-Message-ID: <handler.70697.B.171456492112450 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: report 70697
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: 70697 <at> debbugs.gnu.org
X-Debbugs-Original-To: bug-gnu-emacs@HIDDEN
Received: via spool by submit <at> debbugs.gnu.org id=B.171456492112450
          (code B ref -1); Wed, 01 May 2024 12:02:02 +0000
Received: (at submit) by debbugs.gnu.org; 1 May 2024 12:02:01 +0000
Received: from localhost ([127.0.0.1]:37111 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1s28et-0003Eb-SG
	for submit <at> debbugs.gnu.org; Wed, 01 May 2024 08:02:01 -0400
Received: from lists.gnu.org ([2001:470:142::17]:56388)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <mail@HIDDEN>) id 1s27a3-00084u-UY
 for submit <at> debbugs.gnu.org; Wed, 01 May 2024 06:52:57 -0400
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 <mail@HIDDEN>) id 1s27Zc-0003X7-US
 for bug-gnu-emacs@HIDDEN; Wed, 01 May 2024 06:52:29 -0400
Received: from wfhigh3-smtp.messagingengine.com ([64.147.123.154])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <mail@HIDDEN>) id 1s27Za-0008KJ-N8
 for bug-gnu-emacs@HIDDEN; Wed, 01 May 2024 06:52:28 -0400
Received: from compute6.internal (compute6.nyi.internal [10.202.2.47])
 by mailfhigh.west.internal (Postfix) with ESMTP id A8B6A1800071
 for <bug-gnu-emacs@HIDDEN>; Wed,  1 May 2024 06:52:22 -0400 (EDT)
Received: from mailfrontend2 ([10.202.2.163])
 by compute6.internal (MEProxy); Wed, 01 May 2024 06:52:22 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aleks.bg; h=cc
 :content-type:content-type:date:date:from:from:in-reply-to
 :message-id:mime-version:reply-to:subject:subject:to:to; s=fm1;
 t=1714560742; x=1714647142; bh=R39nDSXL3UHimOz2HD9KQq1ZdN8dWp4C
 vQryWoJpWwM=; b=VqmzPFpvjYZNQvN3Lk2+YTkIjCXUqm1X8f0o1GZw96zE+Lrv
 FkZKpbcr1jrHMK9Af/Oyf2jbcRYYsDWYaguARfveBovFKr5vYy9IJLcAfFco56vT
 kPQhrdGOmrabaKjNJ78h1FBs4DcoStLE63R9oeNA+d1A5Tnu0nEc9VXCYM6MQR5n
 U94ExM9mcgFPduHTwVUobTJp8bXoMQyeKVyUJJ+6JcZKYwF29Toj0oG1QY2yUN7P
 RqkoLhn5eeMxAE08w376wQjQR+1+6CZpQm+Z3jSplOlf89ow4lb086OvUTYkpaLT
 rF8teCTzbDcOq279mpeRxxJ2RkPhdDiJ1T5K+w==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:content-type:content-type:date:date
 :feedback-id:feedback-id:from:from:in-reply-to:message-id
 :mime-version:reply-to:subject:subject:to:to:x-me-proxy
 :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=
 1714560742; x=1714647142; bh=R39nDSXL3UHimOz2HD9KQq1ZdN8dWp4CvQr
 yWoJpWwM=; b=GHu+jJgHeIfOKkwpJgfxGo+Tblzj5j7JUqGD2IBVEYaO7puIYuz
 VFM5gfJSocgXxGsNksSwHSvjqdU/fLKpmLhP0MVCyEI39/jmXE4cgfxfMLMD2wpf
 VkZ0W/D+PFdJEmBHcwR7rikd3cec7SVR0UrJQ0qBeATwqDYDo54YCIAjm5WuKaJz
 PBtuBnPXFXTgiEmtQjODr9zZBfzjQxi0oj3IvlC6eZ9Z6B3NLF1NeWTupPZfT6L4
 edQrKSc5Fk0aIJmr5xP6duX/rfCencF4Ng632+vyQqZLP5KRQ57mbgXc+iJAM6j3
 CFZLuqMHp54XNOqykF+eOGjavO+5LGXpxyQ==
X-ME-Sender: <xms:5R4yZsQnC_7Hc5nnThyZGJDkdgydyZxaWkyoeVmt5EGUlALL4npH3Q>
 <xme:5R4yZpwiIBkQp1Bd0vly9oufnAF5--sh5lP6krs9bIjDGdATcgU3cwAPmOQWU9Ljf
 H30GTl4-Jube1FgZwE>
X-ME-Received: <xmr:5R4yZp0897hjTOmBGShNymuBOqDWQ4Oz-K2NZeNDgJ3UV6FSyDuvXlU2Jl9UEyKCuUvZS2ZDtUsmpBVtj9Gzn9_lG391Ger4qAWFWTes>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrvdduhedgjedtucetufdoteggodetrfdotf
 fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen
 uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufgffkfggtgesthdtredttd
 ertdenucfhrhhomheptehlvghkshgrnhgurghrucffihhmihhtrhhovhcuoehmrghilhes
 rghlvghkshdrsghgqeenucggtffrrghtthgvrhhnpefhfefhfefgtdelueeivdeuieetle
 evueekjefhfeetheekkeekteeiieehtdejteenucffohhmrghinheprghlvghkshdrsghg
 necuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepmhgrih
 hlsegrlhgvkhhsrdgsgh
X-ME-Proxy: <xmx:5R4yZgBJWS2-bRA0JqFCOtEj1HEJlKT8-51M74YeS-H8mOYTfKODdw>
 <xmx:5R4yZljZ3Q7aU55hb1PFipmyKTOgnnWm_v_q_uMpBA--V4B_sCC8-w>
 <xmx:5R4yZso2wdNm8fToTunJKbqBZTfHdY9HOCGXMXK-Mui8rk247_GDgQ>
 <xmx:5R4yZohhU-G4PI_wrGku9z10ffBhbt8Ig62iAtNZBQhl-oSLR74iYA>
 <xmx:5h4yZlZ0MPXErpKgVZQ4keF8JIWCYLBNh68hubGm47fnYgt86fH_4uPN>
Feedback-ID: i3ed944d6:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA for
 <bug-gnu-emacs@HIDDEN>; Wed, 1 May 2024 06:52:21 -0400 (EDT)
From: Aleksandar Dimitrov <mail@HIDDEN>
User-Agent: mu4e 1.12.1; emacs 30.0.50
Date: Wed, 01 May 2024 12:52:58 +0200
Message-ID: <871q6liz1x.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
Received-SPF: pass client-ip=64.147.123.154; envelope-from=mail@HIDDEN;
 helo=wfhigh3-smtp.messagingengine.com
X-Spam_score_int: -27
X-Spam_score: -2.8
X-Spam_bar: --
X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
 RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 0.7 (/)
X-Mailman-Approved-At: Wed, 01 May 2024 08:01:53 -0400
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.3 (/)

Hi all,

Runinng in any compositing window manager (this includes Wayland with a
PGTK build of Emacs, but also X without PGTK), the frame parameter
alpha-background is ignored for at least

- fringe bitmaps
- insets drawn with internal-border-width

The resulting visual effect is quite jarring, and makes both of these
difficult to use together with transparency.

Here's a small emacs -Q script to exhibit the problem:

#+begin_src emacs-lisp

;; Turn off scroll bars to make the bugs more visible.
(scroll-bar-mode -1)

;; set transparency & internal border width.
;; Note how the internal border is going to be drawn in a solid white colour
;; and will ignore the alpha value.
(modify-all-frames-parameters '((alpha-background . 50)
                                (internal-border-width . 20)))

(define-fringe-bitmap 'test-bitmap
  (vector (expt 2 15)) nil 16 '(top t))

;; Define a face for the fringe that has a different background colour, to
;; more easily discern the fringe bitmap bug from the internal border bug.
(make-face 'test-face)
(set-face-attribute 'test-face nil :background "pink")

;; Apply a fringe bitmap to all lines in the current buffer. Note how the fringe
;; bitmap is monochrome, but the background colour ignores the global alpha value.
(defun apply-fringe-bitmap ()
  "Apply a fringe bitmap to the current buffer to exhibit the transparency bug."
  (add-text-properties
   (point-min) (point-max)
   '(wrap-prefix
     #(" " 0 1 (display (left-fringe test-bitmap test-face)))
     line-prefix
     #(" " 0 1 (display (left-fringe test-bitmap test-face))))))

(add-hook 'emacs-startup-hook #'apply-fringe-bitmap)

#+end_src


And here's how it looks like: https://aleks.bg/emacs-bug.png
(that's my personal home page, not an image hoster.)

I would expect the white border around the frame to also be transparent,
and the fringe, too.


Aleks




Message sent:


Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Mailer: MIME-tools 5.505 (Entity 5.505)
Content-Type: text/plain; charset=utf-8
X-Loop: help-debbugs@HIDDEN
From: help-debbugs@HIDDEN (GNU bug Tracking System)
To: Aleksandar Dimitrov <mail@HIDDEN>
Subject: bug#70697: Acknowledgement (30.0.50; Frame parameter
 alpha-background is ignored for fringe bitmaps & internal borders)
Message-ID: <handler.70697.B.171456492112450.ack <at> debbugs.gnu.org>
References: <871q6liz1x.fsf@HIDDEN>
X-Gnu-PR-Message: ack 70697
X-Gnu-PR-Package: emacs
Reply-To: 70697 <at> debbugs.gnu.org
Date: Wed, 01 May 2024 12:02:03 +0000

Thank you for filing a new bug report with debbugs.gnu.org.

This is an automatically generated reply to let you know your message
has been received.

Your message is being forwarded to the package maintainers and other
interested parties for their attention; they will reply in due course.

Your message has been sent to the package maintainer(s):
 bug-gnu-emacs@HIDDEN

If you wish to submit further information on this problem, please
send it to 70697 <at> debbugs.gnu.org.

Please do not send mail to help-debbugs@HIDDEN unless you wish
to report a problem with the Bug-tracking system.

--=20
70697: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D70697
GNU Bug Tracking System
Contact help-debbugs@HIDDEN with problems


Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#70697: 30.0.50; Frame parameter alpha-background is ignored for fringe bitmaps & internal borders
Resent-From: Eli Zaretskii <eliz@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Thu, 09 May 2024 07:48:02 +0000
Resent-Message-ID: <handler.70697.B70697.171524084917298 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 70697
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Aleksandar Dimitrov <mail@HIDDEN>, Po Lu <luangruo@HIDDEN>
Cc: 70697 <at> debbugs.gnu.org
Received: via spool by 70697-submit <at> debbugs.gnu.org id=B70697.171524084917298
          (code B ref 70697); Thu, 09 May 2024 07:48:02 +0000
Received: (at 70697) by debbugs.gnu.org; 9 May 2024 07:47:29 +0000
Received: from localhost ([127.0.0.1]:53764 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1s4yUz-0004Uw-4I
	for submit <at> debbugs.gnu.org; Thu, 09 May 2024 03:47:29 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:46204)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1s4yUw-0004Up-Iw
 for 70697 <at> debbugs.gnu.org; Thu, 09 May 2024 03:47:27 -0400
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 <eliz@HIDDEN>)
 id 1s4yUO-00088C-0w; Thu, 09 May 2024 03:46:53 -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=udnUXOGo/c0ISTvBhIzPwBzc7vSeIxOQ4d2TxqhgcZU=; b=JdK+MQpS7w9+
 GZ5wtLcDnSpIhxEGbIpZzLp7rs6xtg/DowJnKoTUbNdx8ahjpva1dfWAFZseiBXpXuVVQYRiE5TP5
 EH9ehFC94Soq8mSqFhS6dj7FjQBQWeI2uc3bd1wlxn/jiWDoWOj7h9xUKoRJR5QitL7PWSlssEMat
 EablMpLhVuUx9kUE8h9KjY+fsjvLmWjwea5vO/oDsnjIrdzkZJouBjuHxlUi3GlSUA9P1yw0u/607
 w1r/MW/BNsKaMNvfa+2nACeEyI857JxHDQc0n6qRHw8EO2EO3VmppBhGgfzSxWRZy9hg2aF2f7JWa
 9lKI0UnwWRtX1T47kBKAFw==;
Date: Thu, 09 May 2024 10:46:46 +0300
Message-Id: <86ikzn77h5.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
In-Reply-To: <871q6liz1x.fsf@HIDDEN> (message from Aleksandar Dimitrov on
 Wed, 01 May 2024 12:52:58 +0200)
References: <871q6liz1x.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Aleksandar Dimitrov <mail@HIDDEN>
> Date: Wed, 01 May 2024 12:52:58 +0200
> 
> Hi all,
> 
> Runinng in any compositing window manager (this includes Wayland with a
> PGTK build of Emacs, but also X without PGTK), the frame parameter
> alpha-background is ignored for at least
> 
> - fringe bitmaps
> - insets drawn with internal-border-width
> 
> The resulting visual effect is quite jarring, and makes both of these
> difficult to use together with transparency.
> 
> Here's a small emacs -Q script to exhibit the problem:
> 
> #+begin_src emacs-lisp
> 
> ;; Turn off scroll bars to make the bugs more visible.
> (scroll-bar-mode -1)
> 
> ;; set transparency & internal border width.
> ;; Note how the internal border is going to be drawn in a solid white colour
> ;; and will ignore the alpha value.
> (modify-all-frames-parameters '((alpha-background . 50)
>                                 (internal-border-width . 20)))
> 
> (define-fringe-bitmap 'test-bitmap
>   (vector (expt 2 15)) nil 16 '(top t))
> 
> ;; Define a face for the fringe that has a different background colour, to
> ;; more easily discern the fringe bitmap bug from the internal border bug.
> (make-face 'test-face)
> (set-face-attribute 'test-face nil :background "pink")
> 
> ;; Apply a fringe bitmap to all lines in the current buffer. Note how the fringe
> ;; bitmap is monochrome, but the background colour ignores the global alpha value.
> (defun apply-fringe-bitmap ()
>   "Apply a fringe bitmap to the current buffer to exhibit the transparency bug."
>   (add-text-properties
>    (point-min) (point-max)
>    '(wrap-prefix
>      #(" " 0 1 (display (left-fringe test-bitmap test-face)))
>      line-prefix
>      #(" " 0 1 (display (left-fringe test-bitmap test-face))))))
> 
> (add-hook 'emacs-startup-hook #'apply-fringe-bitmap)
> 
> #+end_src
> 
> 
> And here's how it looks like: https://aleks.bg/emacs-bug.png
> (that's my personal home page, not an image hoster.)
> 
> I would expect the white border around the frame to also be transparent,
> and the fringe, too.

Po Lu, any comments or ideas about this?

Thanks.




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#70697: 30.0.50; Frame parameter alpha-background is ignored for fringe bitmaps & internal borders
Resent-From: Po Lu <luangruo@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Thu, 09 May 2024 08:05:01 +0000
Resent-Message-ID: <handler.70697.B70697.171524186418051 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 70697
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Eli Zaretskii <eliz@HIDDEN>
Cc: Aleksandar Dimitrov <mail@HIDDEN>, 70697 <at> debbugs.gnu.org
Received: via spool by 70697-submit <at> debbugs.gnu.org id=B70697.171524186418051
          (code B ref 70697); Thu, 09 May 2024 08:05:01 +0000
Received: (at 70697) by debbugs.gnu.org; 9 May 2024 08:04:24 +0000
Received: from localhost ([127.0.0.1]:53868 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1s4ylM-0004h5-1H
	for submit <at> debbugs.gnu.org; Thu, 09 May 2024 04:04:24 -0400
Received: from sonic303-20.consmr.mail.ne1.yahoo.com ([66.163.188.146]:43256)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <luangruo@HIDDEN>) id 1s4ylJ-0004gx-QC
 for 70697 <at> debbugs.gnu.org; Thu, 09 May 2024 04:04:22 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048;
 t=1715241830; bh=Ngb/ttRSg9MloA/4amemy+IsJnx9uMD6bOfjUru/HO8=;
 h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To;
 b=Qthl+Hd8SewD8EyDqVPfdCLOm71AC6qPFjalEwX2l9+Q/LxXMTKBIq5FtzHKPvAteabE4f474jGvH2pAx1AoIWQ8pT2Oa49NYUz1dUgZQXOky21RZad/8GQJuizkYX2HCqueljYRqc8TXF6rcTGOXNqq6pwB4v6AtZ1jiWF6yH53fWWIo7ZbUGUe2F6W8UarlnCwxJTeEY9j86cmug6ckANZDSQxGZct3Lz66xnaaHzOIar9gm7BjlH0Pp7fKogIq7UkCKMU4XfrGpqEiE4RuydjhnebGfmDhIQf1fh8OCkbjPYBELr9kNacbZ0GHfHgGslFjjaYTgvnNv0srRcPIw==
X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048;
 t=1715241830; bh=bTvIa9bwGM+rAizzfdy1knzXU5bKRn+TJ/6j4uFr9gX=;
 h=X-Sonic-MF:From:To:Subject:Date:From:Subject;
 b=osG1H1v2+YeNdMQnfMk4JBzWKxB+eGsd2Pg4jVuSbH6Dz9Oingk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Tr8F2szXg0bg_IScQ
 .9lNufE8QhE3Te49OIEkpCUSK3YnpmqaeEuW6TgnxX0zZGTHtDbdhLPWbd8ZOVd2G5VcS.yeX.0A
 birTEnHuwSU4DETZQYldJV.UmvysEQbgK6NtZOsdDm_C6gbVT8SSJCgP6DM_ymllrxpU.Tg61vlU
 EqAW7HCp2JCn5tvWj06bmh5Zx821v7Jyn1qXBq_lH_rQKqU.cVmlqk3LYKjflWSkxdsxTEu39LFR
 gWIADnxxSrgO4KO2m7OU0QkzX1Zeou9oMtYlkgtuPpEbOcOqdlmub3.8RR1TWhSEwL12p2mbw_KV
 fMKs.B.nFgiHqChOjDsOt1q0QH_dxWOgLfOGEH8nz3pPJNBa1fxnCHJVyryELZEXVfUl5t9cJlt6
 A.MstuZdzlNCPyNmWGt92kt3upJpgbTag9sk3UYhq.JPjqFQl8spaw9m..k5YF3fv4Qxoe3Xynnf
 nRUMCTlzyFolrYJPJSLCu_nSRbCaYLkPqzOXiEEv3XEavWQ87oZKVjJs1LwJeiAOV2dc-
X-Sonic-MF: <luangruo@HIDDEN>
X-Sonic-ID: 7fd108db-4529-43d5-9d55-58c989db331c
Received: from sonic.gate.mail.ne1.yahoo.com by
 sonic303.consmr.mail.ne1.yahoo.com with HTTP; Thu, 9 May 2024 08:03:50 +0000
Received: by hermes--production-sg3-6f9f87bd85-kf2q6 (Yahoo Inc. Hermes SMTP
 Server) with ESMTPA ID e68d56090cc632bd848392f2f5b753d1; 
 Thu, 09 May 2024 08:03:46 +0000 (UTC)
From: Po Lu <luangruo@HIDDEN>
In-Reply-To: <86ikzn77h5.fsf@HIDDEN> (Eli Zaretskii's message of "Thu, 09 May
 2024 10:46:46 +0300")
References: <871q6liz1x.fsf@HIDDEN> <86ikzn77h5.fsf@HIDDEN>
Date: Thu, 09 May 2024 16:03:20 +0800
Message-ID: <875xvn2z07.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Mailer: WebService/1.1.22321
 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo
Content-Length: 3076
X-Spam-Score: 0.0 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Eli Zaretskii <eliz@HIDDEN> writes:

>> From: Aleksandar Dimitrov <mail@HIDDEN>
>> Date: Wed, 01 May 2024 12:52:58 +0200
>> 
>> Hi all,
>> 
>> Runinng in any compositing window manager (this includes Wayland with a
>> PGTK build of Emacs, but also X without PGTK), the frame parameter
>> alpha-background is ignored for at least
>> 
>> - fringe bitmaps
>> - insets drawn with internal-border-width
>> 
>> The resulting visual effect is quite jarring, and makes both of these
>> difficult to use together with transparency.
>> 
>> Here's a small emacs -Q script to exhibit the problem:
>> 
>> #+begin_src emacs-lisp
>> 
>> ;; Turn off scroll bars to make the bugs more visible.
>> (scroll-bar-mode -1)
>> 
>> ;; set transparency & internal border width.
>> ;; Note how the internal border is going to be drawn in a solid white colour
>> ;; and will ignore the alpha value.
>> (modify-all-frames-parameters '((alpha-background . 50)
>>                                 (internal-border-width . 20)))
>> 
>> (define-fringe-bitmap 'test-bitmap
>>   (vector (expt 2 15)) nil 16 '(top t))
>> 
>> ;; Define a face for the fringe that has a different background colour, to
>> ;; more easily discern the fringe bitmap bug from the internal border bug.
>> (make-face 'test-face)
>> (set-face-attribute 'test-face nil :background "pink")
>> 
>> ;; Apply a fringe bitmap to all lines in the current buffer. Note how the fringe
>> ;; bitmap is monochrome, but the background colour ignores the global alpha value.
>> (defun apply-fringe-bitmap ()
>>   "Apply a fringe bitmap to the current buffer to exhibit the transparency bug."
>>   (add-text-properties
>>    (point-min) (point-max)
>>    '(wrap-prefix
>>      #(" " 0 1 (display (left-fringe test-bitmap test-face)))
>>      line-prefix
>>      #(" " 0 1 (display (left-fringe test-bitmap test-face))))))
>> 
>> (add-hook 'emacs-startup-hook #'apply-fringe-bitmap)
>> 
>> #+end_src
>> 
>> 
>> And here's how it looks like: https://aleks.bg/emacs-bug.png
>> (that's my personal home page, not an image hoster.)
>> 
>> I would expect the white border around the frame to also be transparent,
>> and the fringe, too.
>
> Po Lu, any comments or ideas about this?

This has been previously reported.  As I've stated on those occasions
and numerous others, the internal border is a _border_, a natural
component of a frame's foreground that should not be affected by its
background transparency properties.

As regards fringe bitmaps, they respond to alpha-background on the
XRender builds.  This (untested) patch might extend this to Cairo
builds:

diff --git a/src/xterm.c b/src/xterm.c
index 33ef18d8da5..4fe52bc6bf0 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -6293,7 +6293,7 @@ x_cr_draw_image (struct frame *f, GC gc, cairo_pattern_t *image,
     cairo_rectangle (cr, dest_x, dest_y, width, height);
   else
     {
-      x_set_cr_source_with_gc_background (f, gc, false);
+      x_set_cr_source_with_gc_background (f, gc, true);
       cairo_rectangle (cr, dest_x, dest_y, width, height);
       cairo_fill_preserve (cr);
     }




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#70697: 30.0.50; Frame parameter alpha-background is ignored for fringe bitmaps & internal borders
References: <871q6liz1x.fsf@HIDDEN>
Resent-From: Aleksandar Dimitrov <mail@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Thu, 16 May 2024 18:41:03 +0000
Resent-Message-ID: <handler.70697.B70697.17158848478464 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 70697
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: luangruo@HIDDEN
Cc: eliz@HIDDEN, 70697 <at> debbugs.gnu.org
Received: via spool by 70697-submit <at> debbugs.gnu.org id=B70697.17158848478464
          (code B ref 70697); Thu, 16 May 2024 18:41:03 +0000
Received: (at 70697) by debbugs.gnu.org; 16 May 2024 18:40:47 +0000
Received: from localhost ([127.0.0.1]:50308 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1s7g21-0002CS-Qq
	for submit <at> debbugs.gnu.org; Thu, 16 May 2024 14:40:46 -0400
Received: from fhigh6-smtp.messagingengine.com ([103.168.172.157]:34987)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <mail@HIDDEN>) id 1s7cCY-0007Nn-Qv
 for 70697 <at> debbugs.gnu.org; Thu, 16 May 2024 10:35:26 -0400
Received: from compute4.internal (compute4.nyi.internal [10.202.2.44])
 by mailfhigh.nyi.internal (Postfix) with ESMTP id 0E94D1140146;
 Thu, 16 May 2024 10:35:15 -0400 (EDT)
Received: from mailfrontend1 ([10.202.2.162])
 by compute4.internal (MEProxy); Thu, 16 May 2024 10:35:15 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aleks.bg; h=cc
 :cc:content-type:content-type:date:date:from:from:in-reply-to
 :in-reply-to:message-id:mime-version:reply-to:subject:subject:to
 :to; s=fm1; t=1715870115; x=1715956515; bh=CXfD4Mc2TuqEiKPmkSc+j
 IQRRCrf9JrekyEAKWr3bPw=; b=b6kGwmElejb8noFpzUWijgJUpenL/7uys6vxt
 aAHZXYHiiL9hGTS3qvYLjE+ZnRs2evlvFmJ5B4UVae3CAUNKeEp9WsxX8HmZsnhJ
 zYEKZ1A+bhRZqCR7KPxoKQORzqC92HzkWmIB6ns2XNybReRPayXeUAWN5ci3fF6e
 rN+C2gYGhxFB7/DDJhQSkDvDy0Nb9Dclr940ZroecSGqUrvhaVFR4lKPfreSsyp3
 ov/3I13Yl5+imrM6oUBKxSMMj96avrUw3cSB2n+9Id+rAQ0pCUGwghxbP0gLpe2B
 inLh3PJeiGW4Lu/7TAk9bb4hyMVqzRHHfx/Z7WEbjifaIgLjg==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:cc:content-type:content-type:date:date
 :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to
 :message-id:mime-version:reply-to:subject:subject:to:to
 :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=
 fm3; t=1715870115; x=1715956515; bh=CXfD4Mc2TuqEiKPmkSc+jIQRRCrf
 9JrekyEAKWr3bPw=; b=WEZJdhSRgpshCGSQu4LPDj/qWywbFjHCNyOQ/9SkcS4U
 Nms/k7/Px017SMgHE4UJGRzEEh7+gI1xFcrmI1+uLp9s5B4QBd82b6wDVsmCzZ3B
 MqzkzLnuHa1BRI4yo0Or3wwA2K8IEQB152JX65PzFi6e0yiAdQLLSbdaA0gAbRRO
 JZSnFf4xVzlimL7ZkhE82EmjsGDuCSkdW3/8+Epnz2WYi5uQPm85h/F+AAH3Ofgy
 x3ORUmKR2OkT579kuFPb1Nx6b9OuQuNnbcFF4K26aZroxT96U3ChXWoD9syLHPDO
 2P3NIA4d2y6wdCawDh/8WhwOBtOQVYq6+SF2PEU0lQ==
X-ME-Sender: <xms:ohlGZvNNNMCcs6ekls7dXOrc839XpWCBQMi1D9P0Uh2IjUlqu_glCQ>
 <xme:ohlGZp-eR7I_UnRzzewo2995hgZ_17uKBpEymZQhK5TJKU9wNFhb97t6OQ67fQziz
 0dnOTdJWEWUeRXksNw>
X-ME-Received: <xmr:ohlGZuS79VQWHdXQTN_f6pv5_teucqTJjxVejTtawpBZbfeoWVmb5UQqf3s>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrvdehuddgjeeiucetufdoteggodetrfdotf
 fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen
 uceurghilhhouhhtmecufedttdenucenucfjughrpegfhffvufgjfffkveggtgesthdtre
 dttdertdenucfhrhhomheptehlvghkshgrnhgurghrucffihhmihhtrhhovhcuoehmrghi
 lhesrghlvghkshdrsghgqeenucggtffrrghtthgvrhhnpeegteeukeffgfettdeuhedvte
 etveeuveeileeuveekudfhgffgfeekueejtedugeenucevlhhushhtvghrufhiiigvpedt
 necurfgrrhgrmhepmhgrihhlfhhrohhmpehmrghilhesrghlvghkshdrsghg
X-ME-Proxy: <xmx:ohlGZjtEgyak9ORjaE8qrYj7w8np6CxQ_z8SUQJuecMDAcmL3wjCTQ>
 <xmx:ohlGZnfT2KGj2cttCOVNJvwPrlt2AsuSpQhd3G-7kgGdhOOkkyUCFA>
 <xmx:ohlGZv2P6VsVRi37G5pXtNFb7l9IwgTvhSiUwn_8dxDkI-ULYlWU6g>
 <xmx:ohlGZj8uqY8U-CJqJYSTCZX8bmvsd6wMQ8JIiYa4zer87tE4-_BdxQ>
 <xmx:oxlGZj4Yw8HJzQ4K7DUkHT4-MZkAsvGFAo5N8CCbpX5W6k7YhJXjL_d8>
Feedback-ID: i3ed944d6:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu,
 16 May 2024 10:35:13 -0400 (EDT)
User-agent: mu4e 1.8.15; emacs 30.0.50
From: Aleksandar Dimitrov <mail@HIDDEN>
In-Reply-To: 875xvn2z07.fsf@HIDDEN
Date: Thu, 16 May 2024 16:26:47 +0200
Message-ID: <86eda1kf2w.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.7 (/)
X-Mailman-Approved-At: Thu, 16 May 2024 14:40:44 -0400
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

Hello Po Lu,

> This has been previously reported.  As I've stated on those occasions
> and numerous others, the internal border is a _border_, a natural
> component of a frame's foreground that should not be affected by its
> background transparency properties.

Thanks for your feedback. I didn't find any previous discussions, but I
guess I didn't look hard enough, sorry for that. Is there another way to
create insets in Emacs that does respect transparency settings? Or is
there a way to tweak the frame border's transparency settings that
doesn't also affect the rendered text and other interactive elements?

What I'm looking for is to distance the text somewhat from the edge of
the frame to create some negative space.

> As regards fringe bitmaps, they respond to alpha-background on the
> XRender builds.  This (untested) patch might extend this to Cairo
> builds:

Thanks for the patch. I applied it to the current Emacs (on top of
407b88333) and came to the following conclusion:

When compiling Emacs with --with-toolkit=lucid, the above patch
works. Fringe bitmaps' backgrounds are now transparent.
As before, the internal borders aren't transparent.

When compiling Emacs instead with --with-pgtk, the above patch *does not
work*. However, the internal frame borders *are* transparent there
now. I haven't yet investigated whether that was always the case (and I
simply hadn't compiled Emacs correctly before) or whether that change
came in recently.

I guess the behaviour (whatever it ends up being) should be consistent across toolkits.

Thanks,
Aleks




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#70697: 30.0.50; Frame parameter alpha-background is ignored for fringe bitmaps & internal borders
Resent-From: Eli Zaretskii <eliz@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Sat, 01 Jun 2024 14:05:01 +0000
Resent-Message-ID: <handler.70697.B70697.171725064325651 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 70697
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Aleksandar Dimitrov <mail@HIDDEN>
Cc: luangruo@HIDDEN, 70697 <at> debbugs.gnu.org
Received: via spool by 70697-submit <at> debbugs.gnu.org id=B70697.171725064325651
          (code B ref 70697); Sat, 01 Jun 2024 14:05:01 +0000
Received: (at 70697) by debbugs.gnu.org; 1 Jun 2024 14:04:03 +0000
Received: from localhost ([127.0.0.1]:56939 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sDPL1-0006ff-0a
	for submit <at> debbugs.gnu.org; Sat, 01 Jun 2024 10:04:03 -0400
Received: from eggs.gnu.org ([209.51.188.92]:33116)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1sDPKy-0006fA-J7
 for 70697 <at> debbugs.gnu.org; Sat, 01 Jun 2024 10:04:01 -0400
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 <eliz@HIDDEN>)
 id 1sDPKg-0008Ku-OO; Sat, 01 Jun 2024 10:03:42 -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=GtsztqPiic7yxIQmcpmla63ynIIUmaJoTs7jLJpEIew=; b=k0wJf1skAVzE
 UcoVisGa/o/5yjINXeGc0SS4MuAG6y5A9er5oY7ICpZkbO9jHnq5iDj4YdO43/ORN1OzF+/0fq/vj
 kwOxAaNYXL/ZFBtWvIU6NFaJ6HcOFA68QPBizlAQNsh6RQSLopxvLUKXrWm6RdIHpG+AJZB3l7mp4
 KG4wSyzs3LyCHjtFpTGdM+ZjPloepOv8CzVXYOfkWs0TbadDU42LNkdSMq4ij4GTIRg7cofe+z8QL
 8NaL3G28HWqsa47q49tAEmxsnIIhfh4eKRPPAZdBW0r/CD9mmw3x2g1rBK7xzZUj+6kFLNDyIAp5c
 b0+nZUfV4tcVLRc42wV6Vw==;
Date: Sat, 01 Jun 2024 17:03:38 +0300
Message-Id: <86y17ooj45.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
In-Reply-To: <86eda1kf2w.fsf@HIDDEN> (message
 from Aleksandar Dimitrov on Thu, 16 May 2024 16:26:47 +0200)
References: <86eda1kf2w.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Ping!  Can we make some further progress with this issue?

> From: Aleksandar Dimitrov <mail@HIDDEN>
> Date: Thu, 16 May 2024 16:26:47 +0200
> CC: eliz@HIDDEN,  70697 <at> debbugs.gnu.org
> 
> Hello Po Lu,
> 
> > This has been previously reported.  As I've stated on those occasions
> > and numerous others, the internal border is a _border_, a natural
> > component of a frame's foreground that should not be affected by its
> > background transparency properties.
> 
> Thanks for your feedback. I didn't find any previous discussions, but I
> guess I didn't look hard enough, sorry for that. Is there another way to
> create insets in Emacs that does respect transparency settings? Or is
> there a way to tweak the frame border's transparency settings that
> doesn't also affect the rendered text and other interactive elements?
> 
> What I'm looking for is to distance the text somewhat from the edge of
> the frame to create some negative space.
> 
> > As regards fringe bitmaps, they respond to alpha-background on the
> > XRender builds.  This (untested) patch might extend this to Cairo
> > builds:
> 
> Thanks for the patch. I applied it to the current Emacs (on top of
> 407b88333) and came to the following conclusion:
> 
> When compiling Emacs with --with-toolkit=lucid, the above patch
> works. Fringe bitmaps' backgrounds are now transparent.
> As before, the internal borders aren't transparent.
> 
> When compiling Emacs instead with --with-pgtk, the above patch *does not
> work*. However, the internal frame borders *are* transparent there
> now. I haven't yet investigated whether that was always the case (and I
> simply hadn't compiled Emacs correctly before) or whether that change
> came in recently.
> 
> I guess the behaviour (whatever it ends up being) should be consistent across toolkits.
> 
> Thanks,
> Aleks
> 




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#70697: 30.0.50; Frame parameter alpha-background is ignored for fringe bitmaps & internal borders
Resent-From: Po Lu <luangruo@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Sat, 01 Jun 2024 14:08:02 +0000
Resent-Message-ID: <handler.70697.B70697.171725087026025 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 70697
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Eli Zaretskii <eliz@HIDDEN>
Cc: Aleksandar Dimitrov <mail@HIDDEN>, 70697 <at> debbugs.gnu.org
Received: via spool by 70697-submit <at> debbugs.gnu.org id=B70697.171725087026025
          (code B ref 70697); Sat, 01 Jun 2024 14:08:02 +0000
Received: (at 70697) by debbugs.gnu.org; 1 Jun 2024 14:07:50 +0000
Received: from localhost ([127.0.0.1]:56957 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sDPOg-0006lh-Bz
	for submit <at> debbugs.gnu.org; Sat, 01 Jun 2024 10:07:50 -0400
Received: from sonic303-21.consmr.mail.ne1.yahoo.com ([66.163.188.147]:46166)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <luangruo@HIDDEN>) id 1sDPOe-0006lR-6R
 for 70697 <at> debbugs.gnu.org; Sat, 01 Jun 2024 10:07:48 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048;
 t=1717250850; bh=GFZ8Bv8OKZspayto1hNv/0q8RYIOUCbt3My1N4mysYM=;
 h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To;
 b=hegZjxoB1zahJ5Xk08mrDWGcW8sCX2ahDg7uK7WZTQxSJ1FUzFAKL/bvB2xwNhcyg7nMWFOW4uV8dr71llrRmG1ptS7KkUNQV2tHuFtpA+fLORxsTLRBtf3OKKiqngrwiStPTxUGIN3qnVaFPXtBIOWPxU7IRQNnsHwwL7DGzbT2Ku5kLxturfMavMIjPvjmdVVXGG2fd6fDw+I7pMEHu1mPLG7sE1K0ZVIczURdPkfsfWGWnN7u3UWNfh9fBHncILIy9y5d83vlLhxLsn1u7o3Tufs0p3CNGGpzenovasnChBZNPX8HrDhiMpkRHcEI8Sm8xpkz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qreWKnxO7ON0_gVlkx38NiCUn
 O_bm.aMbZ9cbqivYIiofX.pmUM32O5eF5t02oVL.UKUpSlxldD00f1dAR4Uj7Mzw0w0KObI6zNFq
 dbcG7iy_qejhaexFN4GipNG8ZMhTjCgie9AU2BL20DzcVn9FVFzebL0T1zaUQWy9BYvqUIccVHvC
 PpyzexJks14kCq3DkHWXeF6RkMnUgLnZi.7oFWtlfAFWVlwtsn5frUy3OcE0N.Yh6jh9reQ_uUEm
 NRTzOIKJG4VuzgNvd.45RJch4fRFM3JQWF6lHTawaGbqgUWGHqPKzBiAUtO7ae33ODjjWDdJbJKa
 ORWlsxM68_R2vCMZ3MoBzXfWSNbAFRHdqn8ti_HNszsiNE8U79wp0yfZlkQbmMOCYAYgy3_OjA9j
 3NcwFP0FueV6T4Z7XH5Ck7TPQKEnXv2Jd06aC7c1__WdM_rbtCOIUSlitxShNRoAYXILoCBAMH_t
 Dhm5RHm_FP1bl10YzkCua8CuiJS_4UwcWLgJ9zHVkUn5N0gAVkgtcUfQoKb2V91XZxAGTOlWZ73T
 yxLqgKE_PotWTTXpBlTa8TFpfqoLDQKWfY8yo0qK3WPMyIeIdYz5Js.B.iR_kFYXoXyO0sZIqDLR
 9fpH3CSIR2frZfRFUO1NXVNOpoKnSot_uNlYCfb.g4bmo0xdXWY_4jREvcg2Tizxlk5ReHxEMmta
 t_4ekuo8pKhKC4DDSBC4LmC3K6C16ybHL.cHR2Bd._f70fSxlrC3BIWWaumpPg5Q-
X-Sonic-MF: <luangruo@HIDDEN>
X-Sonic-ID: 5a4ef4f2-d51a-4ab8-8b37-7a47b3cf3864
Received: from sonic.gate.mail.ne1.yahoo.com by
 sonic303.consmr.mail.ne1.yahoo.com with HTTP; Sat, 1 Jun 2024 14:07:30 +0000
Received: by hermes--production-sg3-6f9f87bd85-qvdjn (Yahoo Inc. Hermes SMTP
 Server) with ESMTPA ID c069d71e2742eb1db93c614b1800d3ba; 
 Sat, 01 Jun 2024 14:07:25 +0000 (UTC)
From: Po Lu <luangruo@HIDDEN>
In-Reply-To: <86y17ooj45.fsf@HIDDEN> (Eli Zaretskii's message of "Sat, 01 Jun
 2024 17:03:38 +0300")
References: <86eda1kf2w.fsf@HIDDEN>
 <86y17ooj45.fsf@HIDDEN>
Date: Sat, 01 Jun 2024 22:07:19 +0800
Message-ID: <87a5k4kb8o.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Mailer: WebService/1.1.22407
 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo
Content-Length: 582
X-Spam-Score: 0.0 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)


>> From: Aleksandar Dimitrov <mail@HIDDEN>
>> Date: Thu, 16 May 2024 16:26:47 +0200
>> CC: eliz@HIDDEN,  70697 <at> debbugs.gnu.org

[...]

>> When compiling Emacs with --with-toolkit=lucid, the above patch
>> works. Fringe bitmaps' backgrounds are now transparent.
>> As before, the internal borders aren't transparent.

I suppose you meant to write `--with-x-toolkit=lucid', where
alpha-background is not supported at all, so I'm very much confused as
to why this is so.  Did you really configure Emacs
`--with-toolkit=lucid'?  If you did, you would have been testing a GTK
build.




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#70697: 30.0.50; Frame parameter alpha-background is ignored for fringe bitmaps & internal borders
Resent-From: Aleksandar Dimitrov <mail@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Tue, 04 Jun 2024 05:16:02 +0000
Resent-Message-ID: <handler.70697.B70697.171747815911662 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 70697
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Po Lu <luangruo@HIDDEN>
Cc: Eli Zaretskii <eliz@HIDDEN>, 70697 <at> debbugs.gnu.org
Received: via spool by 70697-submit <at> debbugs.gnu.org id=B70697.171747815911662
          (code B ref 70697); Tue, 04 Jun 2024 05:16:02 +0000
Received: (at 70697) by debbugs.gnu.org; 4 Jun 2024 05:15:59 +0000
Received: from localhost ([127.0.0.1]:56146 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sEMWc-000321-4i
	for submit <at> debbugs.gnu.org; Tue, 04 Jun 2024 01:15:59 -0400
Received: from wfhigh5-smtp.messagingengine.com ([64.147.123.156]:49983)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <mail@HIDDEN>) id 1sEEDQ-0001KE-Ix
 for 70697 <at> debbugs.gnu.org; Mon, 03 Jun 2024 16:23:37 -0400
Received: from compute2.internal (compute2.nyi.internal [10.202.2.46])
 by mailfhigh.west.internal (Postfix) with ESMTP id AF1E7180010A;
 Mon,  3 Jun 2024 16:23:17 -0400 (EDT)
Received: from mailfrontend1 ([10.202.2.162])
 by compute2.internal (MEProxy); Mon, 03 Jun 2024 16:23:17 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aleks.bg; h=cc
 :cc:content-type:content-type:date:date:from:from:in-reply-to
 :in-reply-to:message-id:mime-version:references:reply-to:subject
 :subject:to:to; s=fm2; t=1717446197; x=1717532597; bh=WnjpbZwz+r
 hOMkfyEY/6Y6w3w/RpFwGl87mafBy0Gwo=; b=HXEUcF2kcD4sBlD6z/312AWJrd
 uH/4S2qBSqCpla8oNZ8Lel0aF4/lOEZduqgQbmWUKJi2fhsxyrJYK8g+DRVjSKSo
 rwPItml5Wx69KI3mNuXGlIngZ0YbskZNEr4FscPDwBAyJl8doG8wNELDJNsfrE9+
 orICfPa23iHC3CwZyRcpo0SgCLcK67Hwx0p+wOYZCJ+270hfGcAyOmFE7o0C24AL
 xqz+HL5cF0uM5H3SsgwiZpKItlEhQ+S4gGEeJptgco2VwGFEsSWnRDiCsAeTqdNh
 o4kCvtfxoJ/PIxMNZTLdKlQ0kUxDDFEDUX27MkzvPPK2pavuj48ZPIHR6a2g==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:cc:content-type:content-type:date:date
 :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to
 :message-id:mime-version:references:reply-to:subject:subject:to
 :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=
 fm1; t=1717446197; x=1717532597; bh=WnjpbZwz+rhOMkfyEY/6Y6w3w/Rp
 FwGl87mafBy0Gwo=; b=ZiXmE2VEhQ+qfmekGpQYMHQ2CLmPPc6zDtcTQXAvc6LE
 OmsutQqcGTUCCy7Olr0aMuBmyQwkFTdOyIWd8MDnqWOABS8NkJI8ZNdayumb8dfp
 620x1hlhsnIDVelrvQidC3/zHv7dd1ru8ochQSKIR7hmATxTSu+/6v6Rykx6sZ3w
 CLJr9KbIBK85j02AG41b95S9Xn27riJWbtEspyIA9n7w1Pom770BJ5Qa6d6o/Up+
 AB11uODJNzyJ+qulaw9Bk6Y1mkXAWe6LEHInbDK1I8d3S/rcae5LmeHFfuO8rNBR
 njc9V8goUzfYDDM5C1KJAUL62OeBErY7nBwiCj6gpg==
X-ME-Sender: <xms:NCZeZqlYmGRk5W2DTGZ2eOZLA0zu1s8RymoaHO9X4hK2tQAbh-hB4w>
 <xme:NCZeZh2yR0YbO8rxs1QoMfKO-fr9bL5ag8Ccdnpfnfx_OxhD93BIVLlVFNBjlKn6u
 53xf_4qsSNi3rLdIL4>
X-ME-Received: <xmr:NCZeZoo8qaaxXVHZ7SSkcx_ZO3ZYMP8iIgOdIYtDV91LO6hY22L957fEnMkBJcvVXwngXjA29R7wFyJm3iI4v7flkNCl0g8pEKCUfDJf>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrvdelvddgudegjecutefuodetggdotefrod
 ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh
 necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd
 enucfjughrpefhvfevufgjfhffkfggtgesthdtredttddttdenucfhrhhomheptehlvghk
 shgrnhgurghrucffihhmihhtrhhovhcuoehmrghilhesrghlvghkshdrsghgqeenucggtf
 frrghtthgvrhhnpeeiiefggeetfeeiueevkeetgeegffdvgfdugedvfeeugeefhfeugfeh
 heeileeuudenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhroh
 hmpehmrghilhesrghlvghkshdrsghg
X-ME-Proxy: <xmx:NSZeZukujsLgFpY3ag9JBgzBuqYAK60xxrUwEhlNriuXjd9k12dBbw>
 <xmx:NSZeZo0Tvx3Y6NwdJNX1-PV0qsFAZgfOEQIyl7_Dbnc_cAankl2KDg>
 <xmx:NSZeZludziLcFzBIXkwfi9eLgxhb4fu9Qbvr8_G4uplNdl1gh-3QIw>
 <xmx:NSZeZkVT2t-KF2CjOn1hxKdluRIC-CpxBLj0r6eeKmVdOJnTMxroMg>
 <xmx:NSZeZlwzLflaRWaA8sqkdyBFezf04GJrgVayjY5Fg3C8V1FE-3h8t0QM>
Feedback-ID: i3ed944d6:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon,
 3 Jun 2024 16:23:16 -0400 (EDT)
From: Aleksandar Dimitrov <mail@HIDDEN>
In-Reply-To: <87a5k4kb8o.fsf@HIDDEN> (Po Lu's message of "Sat, 01 Jun 2024
 22:07:19 +0800")
References: <86eda1kf2w.fsf@HIDDEN>
 <86y17ooj45.fsf@HIDDEN> <87a5k4kb8o.fsf@HIDDEN>
Date: Mon, 03 Jun 2024 22:24:27 +0200
Message-ID: <87bk4hai6c.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.7 (/)
X-Mailman-Approved-At: Tue, 04 Jun 2024 01:15:56 -0400
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

Po Lu <luangruo@HIDDEN> writes:

>>> From: Aleksandar Dimitrov <mail@HIDDEN>
>>> Date: Thu, 16 May 2024 16:26:47 +0200
>>> CC: eliz@HIDDEN,  70697 <at> debbugs.gnu.org
>
> [...]
>
>>> When compiling Emacs with --with-toolkit=lucid, the above patch
>>> works. Fringe bitmaps' backgrounds are now transparent.
>>> As before, the internal borders aren't transparent.
>
> I suppose you meant to write `--with-x-toolkit=lucid', where
> alpha-background is not supported at all, so I'm very much confused as
> to why this is so.  Did you really configure Emacs
> `--with-toolkit=lucid'?  If you did, you would have been testing a GTK
> build.

Welp, I never said I'm good at this :D
I didn't know there was a difference between the --with-toolkit and
--with-x-toolkit options. The former isn't documented in ./configure
--help, it seems. I've opted to only use --with-x-toolkit from now on.

I have conducted some experiments now:
--with-x-toolkit=lucid & your patch:
No transparency support.

--with-x-toolkit=gtk3 & your patch:
Transparency in fringes works.
Internal borders are NOT transparent.
This is identical to my previous test with --with-toolkit=lucid, which
wasn't doing what I expected it to.

--with-pgtk & your patch:
Transparency in fringes DOES NOT work
Internal borders ARE transparent
(also, Emacs is very slow, e.g. when rendering company popups, but
that's unrelated)

All of these tests are conducted with the above Emacs version and on
Wayland.




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#70697: 30.0.50; Frame parameter alpha-background is ignored for fringe bitmaps & internal borders
Resent-From: Eli Zaretskii <eliz@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Sat, 15 Jun 2024 08:12:02 +0000
Resent-Message-ID: <handler.70697.B70697.171843909214491 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 70697
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: luangruo@HIDDEN, Aleksandar Dimitrov <mail@HIDDEN>
Cc: 70697 <at> debbugs.gnu.org
Received: via spool by 70697-submit <at> debbugs.gnu.org id=B70697.171843909214491
          (code B ref 70697); Sat, 15 Jun 2024 08:12:02 +0000
Received: (at 70697) by debbugs.gnu.org; 15 Jun 2024 08:11:32 +0000
Received: from localhost ([127.0.0.1]:52697 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sIOVY-0003le-BH
	for submit <at> debbugs.gnu.org; Sat, 15 Jun 2024 04:11:32 -0400
Received: from eggs.gnu.org ([209.51.188.92]:47596)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1sIOVW-0003lJ-8E
 for 70697 <at> debbugs.gnu.org; Sat, 15 Jun 2024 04:11:30 -0400
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 <eliz@HIDDEN>)
 id 1sIOVP-0002Fp-7d; Sat, 15 Jun 2024 04:11:23 -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=KdGj8+wdKO26eT62o9NWaD51JbtIQtrWBAoKs99Bpgg=; b=UoxQ8jx6JJwb
 RABK0QvB1uiMnhX6vcNad3qyQ1JqnmGm6W5FoHx17ImVc0zX3TUrpL3Oy5X7sP2XJg02uc46zuy7x
 MA4s02Lw3MteF6G4XN+Wu84V/65zPGq2NAlQ1Kcyz/rEsPB5/N7QwzQ1h6n4/mfDlPCpgtXHd6Gry
 CE4umO+EnukelG22rpOWaJSPdJwwbwgewGzJBdQ0+VpLnhjWDhKXMshunErIMmgi1ckHPvyeSQvNW
 aWkfHaz6tTx01C4fvFZBpsVslsvrHz3dRM/RY6LpTVWbEXSaIZ1f7qFi/HsjO5J2OFckSCDWEFKHQ
 MsZjyaQHsNblLAxQlgNYOg==;
Date: Sat, 15 Jun 2024 11:11:20 +0300
Message-Id: <86v82avd5j.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
In-Reply-To: <87bk4hai6c.fsf@HIDDEN> (message from Aleksandar Dimitrov on
 Mon, 03 Jun 2024 22:24:27 +0200)
References: <86eda1kf2w.fsf@HIDDEN>
 <86y17ooj45.fsf@HIDDEN> <87a5k4kb8o.fsf@HIDDEN>
 <87bk4hai6c.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Ping!  How should we proceed with this issue?

> From: Aleksandar Dimitrov <mail@HIDDEN>
> Cc:  70697 <at> debbugs.gnu.org, Eli Zaretskii <eliz@HIDDEN>
> Date: Mon, 03 Jun 2024 22:24:27 +0200
> 
> Po Lu <luangruo@HIDDEN> writes:
> 
> >>> From: Aleksandar Dimitrov <mail@HIDDEN>
> >>> Date: Thu, 16 May 2024 16:26:47 +0200
> >>> CC: eliz@HIDDEN,  70697 <at> debbugs.gnu.org
> >
> > [...]
> >
> >>> When compiling Emacs with --with-toolkit=lucid, the above patch
> >>> works. Fringe bitmaps' backgrounds are now transparent.
> >>> As before, the internal borders aren't transparent.
> >
> > I suppose you meant to write `--with-x-toolkit=lucid', where
> > alpha-background is not supported at all, so I'm very much confused as
> > to why this is so.  Did you really configure Emacs
> > `--with-toolkit=lucid'?  If you did, you would have been testing a GTK
> > build.
> 
> Welp, I never said I'm good at this :D
> I didn't know there was a difference between the --with-toolkit and
> --with-x-toolkit options. The former isn't documented in ./configure
> --help, it seems. I've opted to only use --with-x-toolkit from now on.
> 
> I have conducted some experiments now:
> --with-x-toolkit=lucid & your patch:
> No transparency support.
> 
> --with-x-toolkit=gtk3 & your patch:
> Transparency in fringes works.
> Internal borders are NOT transparent.
> This is identical to my previous test with --with-toolkit=lucid, which
> wasn't doing what I expected it to.
> 
> --with-pgtk & your patch:
> Transparency in fringes DOES NOT work
> Internal borders ARE transparent
> (also, Emacs is very slow, e.g. when rendering company popups, but
> that's unrelated)
> 
> All of these tests are conducted with the above Emacs version and on
> Wayland.
> 




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#70697: 30.0.50; Frame parameter alpha-background is ignored for fringe bitmaps & internal borders
Resent-From: Po Lu <luangruo@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Sat, 15 Jun 2024 11:41:02 +0000
Resent-Message-ID: <handler.70697.B70697.17184516236373 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 70697
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Eli Zaretskii <eliz@HIDDEN>
Cc: Aleksandar Dimitrov <mail@HIDDEN>, 70697 <at> debbugs.gnu.org
Received: via spool by 70697-submit <at> debbugs.gnu.org id=B70697.17184516236373
          (code B ref 70697); Sat, 15 Jun 2024 11:41:02 +0000
Received: (at 70697) by debbugs.gnu.org; 15 Jun 2024 11:40:23 +0000
Received: from localhost ([127.0.0.1]:37449 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sIRle-0001eh-8k
	for submit <at> debbugs.gnu.org; Sat, 15 Jun 2024 07:40:23 -0400
Received: from sonic309-20.consmr.mail.ne1.yahoo.com ([66.163.184.146]:33013)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <luangruo@HIDDEN>) id 1sIRcJ-00005P-F2
 for 70697 <at> debbugs.gnu.org; Sat, 15 Jun 2024 07:30:44 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048;
 t=1718451035; bh=oUvto6+tSzwuMcO5J4K8Sizth7jJk5WnDyz3KA5I02c=;
 h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To;
 b=TLrmWU2Cuk5mJCfv6GFvR0CkKaaAVOGz7r3mhjx0nQmf2I4RUrmHbJi+LSmQ9R1x9P8e5veDXUWLZ0hpojq8IE8k9mL0VsASKCC5xbnxkDHHD8TGYvx37TTL034+o9aGUGoFTSaCZKrE4ZP9/j5C0A6sfSNEAdQyk8E96c3xQdtBlT1BH0j6Ggpoq1xpiOfaEoTx+mc7m/Ja77ebRkIIMyHI6uOta4keZ/YY1bZGHZZZKE+qevlHVrNKuyMNNbeV0nm5gQE0ABx33xxLHcseicoVDnS3XMWc2fksfqsqFDUOoxwKtrPJ7kqx01qionseWoO6dC71UOQRSqMIkHmGug==
X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048;
 t=1718451035; bh=Z4kOnovDnqLVaz8wxMbx90ru7VRgDeENEdWgUUBpTZb=;
 h=X-Sonic-MF:From:To:Subject:Date:From:Subject;
 b=FhAOlRU97XDDMVx+3VEGjj4Eo+JGtL52NDtJsvoNd1NbK69BeJrE8PeNBBnBg7nSX64LEmKPSFwWukwa2Dix6tBfrPJBuIBGfRlrCmip18l1HpI1HFVSYqtx6Qd+P0qW56xnVO7OCn6QnfXWctMfzvCyK2MYEiEpHHwf/yPL5noRHuF+llD1WJLd5fX9AmcjE/r8rR2JD3en/62U239yHG/+8BH/x/I+AMsI/E5URLTOr+/wBx3gvizI6KNnzIyHmxPArCy+E0W8Io1tOW17Cw1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KzcHf1r.N
 zhPAWPYSTS8fZCfv7Vd7Rm5xaazYOGtVq4U_3U5hud6ATLF6ZZM2zzvDRpuwoB5FfoBYMvreAsgN
 fdafq.PgSgGhx5mCGYxFm4P05uShWmwoRcE9AVLL0itYJpD6s_qe56hfUlgVwS.LTPaAH8Q13RjM
 nOzVD2..Gm0tyEJfUnlRdxrrlYLuOWDFtbiknemDVd7N_nfQ93LamCQZYPdI_M1Q7U9oZ38bxlX3
 uW0Fct2d2LyuxLFZ.BUsZVfGzpZkQG_6h4KLiEmmWqzzLdktEbDgW6xkU6BOkya4Jvjw5
X-Sonic-MF: <luangruo@HIDDEN>
X-Sonic-ID: e61a83d5-418b-4a09-bab2-11797e0c71a9
Received: from sonic.gate.mail.ne1.yahoo.com by
 sonic309.consmr.mail.ne1.yahoo.com with HTTP; Sat, 15 Jun 2024 11:30:35 +0000
Received: by hermes--production-sg3-7b469d9f6-2w46x (Yahoo Inc. Hermes SMTP
 Server) with ESMTPA ID 6fce5f797950e485b646a9a496e23717; 
 Sat, 15 Jun 2024 11:20:28 +0000 (UTC)
From: Po Lu <luangruo@HIDDEN>
In-Reply-To: <86v82avd5j.fsf@HIDDEN> (Eli Zaretskii's message of "Sat, 15 Jun
 2024 11:11:20 +0300")
References: <86eda1kf2w.fsf@HIDDEN>
 <86y17ooj45.fsf@HIDDEN> <87a5k4kb8o.fsf@HIDDEN>
 <87bk4hai6c.fsf@HIDDEN> <86v82avd5j.fsf@HIDDEN>
Date: Sat, 15 Jun 2024 19:20:21 +0800
Message-ID: <87tthu5u6i.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Mailer: WebService/1.1.22407
 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo
Content-Length: 3116
X-Spam-Score: -0.0 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Eli Zaretskii <eliz@HIDDEN> writes:

> Ping!  How should we proceed with this issue?
>
>> From: Aleksandar Dimitrov <mail@HIDDEN>

Alexander, is there something suspicious as to your mail host that is
prompting mine to discard your responses?  They aren't even classified
Bulk Mail, just quietly disposed of.

>> Welp, I never said I'm good at this :D
>> I didn't know there was a difference between the --with-toolkit and
>> --with-x-toolkit options. The former isn't documented in ./configure
>> --help, it seems. I've opted to only use --with-x-toolkit from now on.
>> 
>> I have conducted some experiments now:
>> --with-x-toolkit=lucid & your patch:
>> No transparency support.
>> 
>> --with-x-toolkit=gtk3 & your patch:
>> Transparency in fringes works.
>> Internal borders are NOT transparent.
>> This is identical to my previous test with --with-toolkit=lucid, which
>> wasn't doing what I expected it to.
>> 
>> --with-pgtk & your patch:
>> Transparency in fringes DOES NOT work
>> Internal borders ARE transparent
>> (also, Emacs is very slow, e.g. when rendering company popups, but
>> that's unrelated)
>> 
>> All of these tests are conducted with the above Emacs version and on
>> Wayland.

Yes, thanks.  Please try the patch attached: its effect should be to
homogenize PGTK's display with the X port's.

diff --git a/src/pgtkterm.c b/src/pgtkterm.c
index 49b7ea406f8..e379ed33c01 100644
--- a/src/pgtkterm.c
+++ b/src/pgtkterm.c
@@ -3594,20 +3594,7 @@ pgtk_draw_fringe_bitmap (struct window *w, struct glyph_row *row,
   pgtk_clip_to_row (w, row, ANY_AREA, cr);
 
   if (p->bx >= 0 && !p->overlay_p)
-    {
-      /* In case the same realized face is used for fringes and for
-         something displayed in the text (e.g. face `region' on
-         mono-displays, the fill style may have been changed to
-         FillSolid in pgtk_draw_glyph_string_background.  */
-      if (face->stipple)
-	fill_background_by_face (f, face, p->bx, p->by, p->nx, p->ny);
-      else
-	{
-	  pgtk_set_cr_source_with_color (f, face->background, true);
-	  cairo_rectangle (cr, p->bx, p->by, p->nx, p->ny);
-	  cairo_fill (cr);
-	}
-    }
+    fill_background_by_face (f, face, p->bx, p->by, p->nx, p->ny);
 
   if (p->which
       && p->which < max_fringe_bmp
@@ -5014,14 +5001,16 @@ pgtk_clear_under_internal_border (struct frame *f)
 
       if (face)
 	{
-	  fill_background_by_face (f, face, 0, margin, width, border);
-	  fill_background_by_face (f, face, 0, 0, border, height);
-	  fill_background_by_face (f, face, width - border, 0, border,
-				   height);
-	  fill_background_by_face (f, face, 0, (height
-						- bottom_margin
-						- border),
-				   width, border);
+	  pgtk_fill_rectangle (f, face->foreground, 0, margin, width,
+			       border, false);
+	  pgtk_fill_rectangle (f, face->foreground, 0, 0, border, height,
+			       false);
+	  pgtk_fill_rectangle (f, face->foreground, width - border, 0,
+			       border, height, false);
+	  pgtk_fill_rectangle (f, face->foreground, 0, (height
+							- bottom_margin
+							- border),
+			       width, border, false);
 	}
       else
 	{




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#70697: 30.0.50; Frame parameter alpha-background is ignored for fringe bitmaps & internal borders
Resent-From: Eli Zaretskii <eliz@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Thu, 27 Jun 2024 07:42:01 +0000
Resent-Message-ID: <handler.70697.B70697.171947410223603 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 70697
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: mail@HIDDEN, Po Lu <luangruo@HIDDEN>
Cc: 70697 <at> debbugs.gnu.org
Received: via spool by 70697-submit <at> debbugs.gnu.org id=B70697.171947410223603
          (code B ref 70697); Thu, 27 Jun 2024 07:42:01 +0000
Received: (at 70697) by debbugs.gnu.org; 27 Jun 2024 07:41:42 +0000
Received: from localhost ([127.0.0.1]:40908 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sMjlG-00068c-93
	for submit <at> debbugs.gnu.org; Thu, 27 Jun 2024 03:41:42 -0400
Received: from eggs.gnu.org ([209.51.188.92]:56528)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1sMjlE-00068P-KD
 for 70697 <at> debbugs.gnu.org; Thu, 27 Jun 2024 03:41:41 -0400
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 <eliz@HIDDEN>)
 id 1sMjl6-0002tK-9X; Thu, 27 Jun 2024 03:41:32 -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=/8YCDV++L1Ml1dFLizy/Uvf22k5ZDHs8N5uO/xtFCoY=; b=k7GjBebVzkhq
 2uTVW6nYw7I0ZzI8cxaONnkr7YJJYpxM6dLxvU70YRoJi3jIEzLp5QCle3Ab8dXUhyqBF0opf7Crg
 d+1VYZma+h3uDxQwEFRKP8c5mbewLhfgLdpnMRiy1QKLUu2sSqaI4G9dJ17icNu509UBZRTDXx8fU
 5nuenQzl+tk2if6fxgyxeyZAhSGW3+Vu0QfM6ZwwTwsKItH8rUSq/uYPvxOIJcPTR1a0fdy8HoSGt
 2gvZLfPa8nK1pLBnTfZi1/f5ZoZ5p6gfUtMQN2mmLQwCDFGvqG47n/zrKHxn5FM/WneUn9WwS077R
 K2i+TtB6t+EmDo76hIOnSQ==;
Date: Thu, 27 Jun 2024 10:41:29 +0300
Message-Id: <861q4i7ryu.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
In-Reply-To: <87tthu5u6i.fsf@HIDDEN> (message from Po Lu on Sat, 15 Jun
 2024 19:20:21 +0800)
References: <86eda1kf2w.fsf@HIDDEN>
 <86y17ooj45.fsf@HIDDEN> <87a5k4kb8o.fsf@HIDDEN>
 <87bk4hai6c.fsf@HIDDEN> <86v82avd5j.fsf@HIDDEN>
 <87tthu5u6i.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Ping! Aleksandar, can you please try Po Lu's patch and report back?

> From: Po Lu <luangruo@HIDDEN>
> Cc: Aleksandar Dimitrov <mail@HIDDEN>,  70697 <at> debbugs.gnu.org
> Date: Sat, 15 Jun 2024 19:20:21 +0800
> 
> Eli Zaretskii <eliz@HIDDEN> writes:
> 
> > Ping!  How should we proceed with this issue?
> >
> >> From: Aleksandar Dimitrov <mail@HIDDEN>
> 
> Alexander, is there something suspicious as to your mail host that is
> prompting mine to discard your responses?  They aren't even classified
> Bulk Mail, just quietly disposed of.
> 
> >> Welp, I never said I'm good at this :D
> >> I didn't know there was a difference between the --with-toolkit and
> >> --with-x-toolkit options. The former isn't documented in ./configure
> >> --help, it seems. I've opted to only use --with-x-toolkit from now on.
> >> 
> >> I have conducted some experiments now:
> >> --with-x-toolkit=lucid & your patch:
> >> No transparency support.
> >> 
> >> --with-x-toolkit=gtk3 & your patch:
> >> Transparency in fringes works.
> >> Internal borders are NOT transparent.
> >> This is identical to my previous test with --with-toolkit=lucid, which
> >> wasn't doing what I expected it to.
> >> 
> >> --with-pgtk & your patch:
> >> Transparency in fringes DOES NOT work
> >> Internal borders ARE transparent
> >> (also, Emacs is very slow, e.g. when rendering company popups, but
> >> that's unrelated)
> >> 
> >> All of these tests are conducted with the above Emacs version and on
> >> Wayland.
> 
> Yes, thanks.  Please try the patch attached: its effect should be to
> homogenize PGTK's display with the X port's.
> 
> diff --git a/src/pgtkterm.c b/src/pgtkterm.c
> index 49b7ea406f8..e379ed33c01 100644
> --- a/src/pgtkterm.c
> +++ b/src/pgtkterm.c
> @@ -3594,20 +3594,7 @@ pgtk_draw_fringe_bitmap (struct window *w, struct glyph_row *row,
>    pgtk_clip_to_row (w, row, ANY_AREA, cr);
>  
>    if (p->bx >= 0 && !p->overlay_p)
> -    {
> -      /* In case the same realized face is used for fringes and for
> -         something displayed in the text (e.g. face `region' on
> -         mono-displays, the fill style may have been changed to
> -         FillSolid in pgtk_draw_glyph_string_background.  */
> -      if (face->stipple)
> -	fill_background_by_face (f, face, p->bx, p->by, p->nx, p->ny);
> -      else
> -	{
> -	  pgtk_set_cr_source_with_color (f, face->background, true);
> -	  cairo_rectangle (cr, p->bx, p->by, p->nx, p->ny);
> -	  cairo_fill (cr);
> -	}
> -    }
> +    fill_background_by_face (f, face, p->bx, p->by, p->nx, p->ny);
>  
>    if (p->which
>        && p->which < max_fringe_bmp
> @@ -5014,14 +5001,16 @@ pgtk_clear_under_internal_border (struct frame *f)
>  
>        if (face)
>  	{
> -	  fill_background_by_face (f, face, 0, margin, width, border);
> -	  fill_background_by_face (f, face, 0, 0, border, height);
> -	  fill_background_by_face (f, face, width - border, 0, border,
> -				   height);
> -	  fill_background_by_face (f, face, 0, (height
> -						- bottom_margin
> -						- border),
> -				   width, border);
> +	  pgtk_fill_rectangle (f, face->foreground, 0, margin, width,
> +			       border, false);
> +	  pgtk_fill_rectangle (f, face->foreground, 0, 0, border, height,
> +			       false);
> +	  pgtk_fill_rectangle (f, face->foreground, width - border, 0,
> +			       border, height, false);
> +	  pgtk_fill_rectangle (f, face->foreground, 0, (height
> +							- bottom_margin
> +							- border),
> +			       width, border, false);
>  	}
>        else
>  	{
> 




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#70697: 30.0.50; Frame parameter alpha-background is ignored for fringe bitmaps & internal borders
Resent-From: Aleksandar Dimitrov <mail@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Mon, 08 Jul 2024 17:08:02 +0000
Resent-Message-ID: <handler.70697.B70697.17204584618633 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 70697
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Eli Zaretskii <eliz@HIDDEN>, Po Lu <luangruo@HIDDEN>
Cc: 70697 <at> debbugs.gnu.org
Received: via spool by 70697-submit <at> debbugs.gnu.org id=B70697.17204584618633
          (code B ref 70697); Mon, 08 Jul 2024 17:08:02 +0000
Received: (at 70697) by debbugs.gnu.org; 8 Jul 2024 17:07:41 +0000
Received: from localhost ([127.0.0.1]:51397 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sQrq0-0002FB-VV
	for submit <at> debbugs.gnu.org; Mon, 08 Jul 2024 13:07:41 -0400
Received: from fhigh8-smtp.messagingengine.com ([103.168.172.159]:47293)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <mail@HIDDEN>) id 1sQrpy-0002Ew-Dx
 for 70697 <at> debbugs.gnu.org; Mon, 08 Jul 2024 13:07:39 -0400
Received: from compute7.internal (compute7.nyi.internal [10.202.2.48])
 by mailfhigh.nyi.internal (Postfix) with ESMTP id 4E3AA1140309;
 Mon,  8 Jul 2024 13:07:28 -0400 (EDT)
Received: from mailfrontend1 ([10.202.2.162])
 by compute7.internal (MEProxy); Mon, 08 Jul 2024 13:07:28 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aleks.bg; h=cc
 :cc:content-type:content-type:date:date:from:from:in-reply-to
 :in-reply-to:message-id:mime-version:references:reply-to:subject
 :subject:to:to; s=fm3; t=1720458448; x=1720544848; bh=2fVd6MZSru
 1d7ezOyzI2P7aqdHb/4DKdtjbPVcy9rX8=; b=Yc0p8feo9kjevY66k2WrykyRiw
 nNAZA+NvEYTn4b+CQvW3S9mdPybaZk2E9omc7uP80j7gk9/uNYOnBLTDGeYogWdj
 mB3rQPmt4FoPezeiBGHsIfx1cCY5aqSvzuR5cqmbW2mQYJFYWf94C5W4CuVtCCy4
 4DZmgzOgLzg1DrvlAj+vUXeg2wXz3jxyQ6J7kO3HwbxQbvvt4o2qlgvZOWTnXtiN
 TusbZKboZ4hMgZIRYQ9yVOrI8+t2ssGkZEGZyw9XGExo7p9VPdlVGsJLnmXPGDr6
 7GFBXa1Ms/ZOsWbe8P5HXaL2issDVIXxPGDUgl7qaCFt/jdh8GotU9Eynrvg==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:cc:content-type:content-type:date:date
 :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to
 :message-id:mime-version:references:reply-to:subject:subject:to
 :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=
 fm2; t=1720458448; x=1720544848; bh=2fVd6MZSru1d7ezOyzI2P7aqdHb/
 4DKdtjbPVcy9rX8=; b=Kt6Sx5tm3Q5YRJ/NYY4xr5VuCBa9E2qRL2AH9mHzGAty
 QrQGOx3T38XyxqAAIvYn8kpkztJscF7Y9quAxCBwhNyfm5bcxV+nscxp5jcm0DB9
 oyE9AeLwWk3tcSutONrAUZF2rToDBEdMk3bfAsUVP3RdAso9lfl3IrKhqCBiUmGm
 5074Vy9F1lqnx89BnuchyNapOm5Fp8/iWPUkduAM5YUy0IYW9c48DM4DkIA+/dyg
 it7hXHNvOA9fKPD68+NE3GrWUiMcDSTHLM3OwIkvs5yUO5pn0bEX/wWjX0IfrEGS
 F0/twgj9IdMDaSYTOppb1ZGq9dv1f0yPgPQgXW7T1g==
X-ME-Sender: <xms:zhyMZhmws-JNR19qjfqSSSTywg44bNGdl_JZuSGv6_ZwPOqtm0hy6Q>
 <xme:zhyMZs2MukN8hdhlOmH1DNIa74oV_i95DISw8dqILLTt1DQyXrg2-Er-QB4BJPzKi
 vech72Le8TUlcLwidI>
X-ME-Received: <xmr:zhyMZnp5SvtBPy0S10z6NhUlb9ep6pZU1QDCGlQhz-6aUyGyuKa3eHrUaBR7B929rYnqwWBHxkeGf-gqoBbORQWpinYfko4DBtT9Hy4PpA>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrvdejgddutdekucetufdoteggodetrfdotf
 fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen
 uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne
 cujfgurhephffvufgjfhevfffkgggtsehttdertddttddtnecuhfhrohhmpeetlhgvkhhs
 rghnuggrrhcuffhimhhithhrohhvuceomhgrihhlsegrlhgvkhhsrdgsgheqnecuggftrf
 grthhtvghrnhepieeigffgveduffffjedtjedtieegffehgeegkeejfffhleeguefhvedt
 udevkeeknecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomh
 epmhgrihhlsegrlhgvkhhsrdgsgh
X-ME-Proxy: <xmx:zhyMZhnBNPWm_N1eYtun_2YhiGBMisAFGSGpqaVX_PQOsZPpbrMrFw>
 <xmx:zhyMZv1xQroRzY2AS_cPxuIsNdZZr7Eca9ndTDk4zjQt6Abtk4kK8Q>
 <xmx:zhyMZgtz1vy_9zx2DV48e7U_LDfzjQf1p-0zDHPEjMowP-ZXBeN69Q>
 <xmx:zhyMZjVvbF1Gt45ymFe_X2Yu_eIuQQkW_xKXsvTQYMN5pQCTTz9hKQ>
 <xmx:0ByMZgwPWCRPIIS7svLOUDlHthNS9wP0bGfC_seVFdBnEGNjVuk-yss6>
Feedback-ID: i3ed944d6:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon,
 8 Jul 2024 13:07:26 -0400 (EDT)
From: Aleksandar Dimitrov <mail@HIDDEN>
In-Reply-To: <861q4i7ryu.fsf@HIDDEN> (Eli Zaretskii's message of "Thu, 27 Jun
 2024 10:41:29 +0300")
References: <86eda1kf2w.fsf@HIDDEN>
 <86y17ooj45.fsf@HIDDEN> <87a5k4kb8o.fsf@HIDDEN>
 <87bk4hai6c.fsf@HIDDEN> <86v82avd5j.fsf@HIDDEN>
 <87tthu5u6i.fsf@HIDDEN> <861q4i7ryu.fsf@HIDDEN>
Date: Mon, 08 Jul 2024 19:08:53 +0200
Message-ID: <87jzhvbyl6.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.7 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

Hi Eli, Po Lu,

sorry for taking a while to get back to you, I've had a busy week or
two.

I've tried out Po Lu's patch. Now:

- the bug with the fringe is fixed in both pgtk and gtk3
- insets are not opaque anymore in pgtk
- insets are *black* and opaque with the minimal repro I posted in the beginning of
  this thread --with-pgtk
- insets are *white* and opaque --with-x-toolkit=gtk3 (again with the minimal repro)

I'm not sure why that is, or whether that's a problem.

>> Alexander, is there something suspicious as to your mail host that is
>> prompting mine to discard your responses?  They aren't even classified
>> Bulk Mail, just quietly disposed of.

Dunno, maybe your mail host doesn't like Emacs from Eastern Europe? I've
not had that problem anywhere else. My mail provider is actually
Australian, though. Only the domain is .bg

Thanks for all your work!

Aleks




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#70697: 30.0.50; Frame parameter alpha-background is ignored for fringe bitmaps & internal borders
Resent-From: Po Lu <luangruo@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Tue, 09 Jul 2024 06:13:01 +0000
Resent-Message-ID: <handler.70697.B70697.172050557732502 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 70697
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Aleksandar Dimitrov <mail@HIDDEN>
Cc: Eli Zaretskii <eliz@HIDDEN>, 70697 <at> debbugs.gnu.org
Received: via spool by 70697-submit <at> debbugs.gnu.org id=B70697.172050557732502
          (code B ref 70697); Tue, 09 Jul 2024 06:13:01 +0000
Received: (at 70697) by debbugs.gnu.org; 9 Jul 2024 06:12:57 +0000
Received: from localhost ([127.0.0.1]:51967 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sR45w-0008SA-Qu
	for submit <at> debbugs.gnu.org; Tue, 09 Jul 2024 02:12:57 -0400
Received: from sonic313-10.consmr.mail.ne1.yahoo.com ([66.163.185.33]:37936)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <luangruo@HIDDEN>) id 1sR45u-0008Rw-Bz
 for 70697 <at> debbugs.gnu.org; Tue, 09 Jul 2024 02:12:55 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048;
 t=1720505563; bh=Mk1kPSAN27tlIw5E/b/z8AkqsY6xiJMm266okThI5R8=;
 h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To;
 b=dkOe6HH8zdFQNhU0FHznYAm7sZGqvvIbr4BzREkQKhk/3R07q5Z6Pt+M2qX0ISHZu/0nU+arYahV5Wyv7VdjLHxiI+1TgMbbDW7XpaBLZRxfPmvJZC9gLtL1MtJEUaahf0QXKGuLSG8CZlgFPMV5t8PT6SP5MxN2nxbeW5Kp5X/Mwx+uHkAsuZYoKBMJWtHWA0UWqVwDwUbVrWsNn5iOxJACLQ3krF6NhWLjIY7zgkr3TU4JuditSkXEiPRu8hjIctx1Bd7Oivmc9QCl3fa/SSswGt+ooh98gD4JrXAhdHjqR1CiLe9h3MsXEHkRzlWvqyFH48SkMhYncDVfJVQogg==
X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed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fUxYAIhYmRUZH0vEjFOwZz9
 m1paSkrJsw8hZ4EWviN0s5ijFIH44fF02NvQQ4XHMdjr4Sst3JqLk3owKCj0JFRv95ujSnJRVX0F
 2s3KszWVor1brAP6hTKkDzCmk1RvreZMMtOaK1k1si9xqZ5ta4TwzHJJqEXFHr6lHNN22G4hEjMy
 dYZWaI_7M_z3UEhhv_8ZFj4DeR0bS_EIPuzo24Vb9UHj.zbR28E8OcCrnnpA5ahENN4vnrguuTqm
 pC5RVJhgVsRwHIeCCcty76Bi1mYR5OpJpmLZ0FQ4yPAnnR_6ER8o8lvfo4PsV4UlnmZ6bKgB8B7L
 ePm4hz2bfBHQkYLusYdnevACN2va1FCGikJiEl8ZT5h3Dp6YtoWEhXTWeiOQucSF2cjIG4nGZFVg
 6KkgJX0gu0f0Ja4S2FmEXoXQVZEqL_yq90Y6MZy2hoklW4mmG2znMdw8SmO3K8IuYS_GEj8PimPh
 T3STAQfpu9AuCczjtfrJGlwDU0uIYJXRJfqcq_FxB7dqaTr2lkiIPZj1WGug1_Ivtz59195Sz8dn
 hHkFUtKZkk3QFF393IiEwQOESTVReLXU4G9yfYmhU9bBw7cqbgiCR_hneXh9hbGjaKOXMATFeINw
 jYvX7Ur9lGTI8_N_GU9KMjoa3AI2b.DmffwjH.0fXWkO1
X-Sonic-MF: <luangruo@HIDDEN>
X-Sonic-ID: 5e2b1595-1679-480f-8bd6-f2eb40ce4892
Received: from sonic.gate.mail.ne1.yahoo.com by
 sonic313.consmr.mail.ne1.yahoo.com with HTTP; Tue, 9 Jul 2024 06:12:43 +0000
Received: by hermes--production-sg3-7b469d9f6-2w46x (Yahoo Inc. Hermes SMTP
 Server) with ESMTPA ID a65abf9395b10e54c2d80cb1d22b27bf; 
 Tue, 09 Jul 2024 06:12:37 +0000 (UTC)
From: Po Lu <luangruo@HIDDEN>
In-Reply-To: <87jzhvbyl6.fsf@HIDDEN> (Aleksandar Dimitrov's message of "Mon, 
 08 Jul 2024 19:08:53 +0200")
References: <86eda1kf2w.fsf@HIDDEN>
 <86y17ooj45.fsf@HIDDEN> <87a5k4kb8o.fsf@HIDDEN>
 <87bk4hai6c.fsf@HIDDEN> <86v82avd5j.fsf@HIDDEN>
 <87tthu5u6i.fsf@HIDDEN> <861q4i7ryu.fsf@HIDDEN>
 <87jzhvbyl6.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
Date: Tue, 09 Jul 2024 14:12:24 +0800
Message-ID: <87ttgz14c7.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Mailer: WebService/1.1.22464
 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo
Content-Length: 649
X-Spam-Score: 0.0 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Aleksandar Dimitrov <mail@HIDDEN> writes:

> Hi Eli, Po Lu,
>
> sorry for taking a while to get back to you, I've had a busy week or
> two.
>
> I've tried out Po Lu's patch. Now:
>
> - the bug with the fringe is fixed in both pgtk and gtk3

Thanks, this portion of the patch has been installed in emacs-30.

> - insets are not opaque anymore in pgtk
> - insets are *black* and opaque with the minimal repro I posted in the beginning of
>   this thread --with-pgtk
> - insets are *white* and opaque --with-x-toolkit=gtk3 (again with the minimal repro)
>
> I'm not sure why that is, or whether that's a problem.

I'll continue pursuing this matter.




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#70697: 30.0.50; Frame parameter alpha-background is ignored for fringe bitmaps & internal borders
Resent-From: Aleksandar Dimitrov <mail@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Tue, 16 Jul 2024 08:15:02 +0000
Resent-Message-ID: <handler.70697.B70697.172111767112921 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 70697
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Po Lu <luangruo@HIDDEN>
Cc: Eli Zaretskii <eliz@HIDDEN>, 70697 <at> debbugs.gnu.org
Received: via spool by 70697-submit <at> debbugs.gnu.org id=B70697.172111767112921
          (code B ref 70697); Tue, 16 Jul 2024 08:15:02 +0000
Received: (at 70697) by debbugs.gnu.org; 16 Jul 2024 08:14:31 +0000
Received: from localhost ([127.0.0.1]:60920 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sTdKQ-0003ML-Kk
	for submit <at> debbugs.gnu.org; Tue, 16 Jul 2024 04:14:30 -0400
Received: from fout5-smtp.messagingengine.com ([103.168.172.148]:58325)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <mail@HIDDEN>) id 1sTdKO-0003M7-04
 for 70697 <at> debbugs.gnu.org; Tue, 16 Jul 2024 04:14:29 -0400
Received: from compute7.internal (compute7.nyi.internal [10.202.2.48])
 by mailfout.nyi.internal (Postfix) with ESMTP id 610B81388EF0;
 Tue, 16 Jul 2024 04:14:20 -0400 (EDT)
Received: from mailfrontend1 ([10.202.2.162])
 by compute7.internal (MEProxy); Tue, 16 Jul 2024 04:14:20 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aleks.bg; h=cc
 :cc:content-type:content-type:date:date:from:from:in-reply-to
 :in-reply-to:message-id:mime-version:references:reply-to:subject
 :subject:to:to; s=fm3; t=1721117660; x=1721204060; bh=dkw4qVCxzi
 UFvVN7ZbbQIdceo0dvALm/ij17PMc9uPY=; b=jPaOw2IkvocmxY3QiItgK1IV3E
 lxE19D2zudD/ROrwiYCvIuVeivBD3TxySDAh9J76j7g+Ord8/PP3HHwpaN274PjS
 Yhw/JBP1QDfDDYTWRNn1PjQQ85Is15sS0lpTZoAOnRVP1Ek0N6avEZfIlmj9Q1+h
 ynmRVpD8E5r7TAt/WGdQK2TT32mbP/c3QcGdIXDjZxl0+lDKYo81yW+L2dtDtxAV
 XBEcK859RtYB8cSxvFZpdmkci6tP1sPDPFIXsPBXide2BbdzSqDvQ/Cvq/wkPLJV
 /f9zNqbsxKGbRKBO9UpG86JmeXYqcIfz8ES/T3OYb9xv8/YDgWW3RKkMUIYw==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:cc:content-type:content-type:date:date
 :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to
 :message-id:mime-version:references:reply-to:subject:subject:to
 :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=
 fm2; t=1721117660; x=1721204060; bh=dkw4qVCxziUFvVN7ZbbQIdceo0dv
 ALm/ij17PMc9uPY=; b=Ummj8VvzSfknsDhGeg5HMMW2FM9Gn4UZ8Vc59F/D8f/M
 tbgYKiq05Hg8HZtDAOWVgBxe2tUcpGLUuJdOP4lcil0C5IXppW8ruRZPDAFDOq7u
 gV4/m7hPPF0S5riyqCUzXoYsXaKCRBvdodFKwyqDY/tlRl3lAXkNJIDoDNbt5TyF
 mS740k4rT/wwE9cvo2O2ofi4V+u+3v3UVVGixkwsW9U4nXSzd14cpy+cpTA0QobX
 c7bGVHRWGSaNe3VupYND4cXzH2flUajZru+Tvr1WvT2sljnrcZazMRetbvX7FFhF
 e6J/PlO+x+6hXKctYxVv9EQaqgCowKZ3ZiVNTK9yNw==
X-ME-Sender: <xms:2yuWZm_2hOkgeHDd-x3l4De408U1C800_c7jZROUp3sZACKgD5bPCw>
 <xme:2yuWZmvDTpvmkTcwiGSn_FvKjcJM0v88oZY9qidOXfBkZPN8jYg0EDLF91PnvPWN7
 0YHLn-lsRXIfi1jllI>
X-ME-Received: <xmr:2yuWZsCuH8znkW7zGreY_pccyphpulbriDp6ECyVfohvdbP1RcRfTkJjVMU>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrgeegucetufdoteggodetrfdotffvucfrrh
 hofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgenuceurghi
 lhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurh
 epfhgfhffvvefuffgjkfggtgesthdtredttdertdenucfhrhhomheptehlvghkshgrnhgu
 rghrucffihhmihhtrhhovhcuoehmrghilhesrghlvghkshdrsghgqeenucggtffrrghtth
 gvrhhnpedvheffueeufefhgedvkeefleetleehheektdeufeffffegtdehvdekkedvuddt
 veenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehmrg
 hilhesrghlvghkshdrsghg
X-ME-Proxy: <xmx:2yuWZudTYT5sXeTt3MsMkNRnbxkF70QkbrqT1uCOKGfLx-luLFqVaw>
 <xmx:2yuWZrMHCui77IjKDL7K-yG3j-AljojQnw4Ax5Y3yvb5qYaha4dPSg>
 <xmx:2yuWZom1GqMAMqPPJzCjcNMZ5wphmejRV5PNQZuX3mLwA1kW5wUUrQ>
 <xmx:2yuWZtvyYQwXx-jPOFjtDW7tc2CM_25JsWjoFee3z59JXCZSn5GAHA>
 <xmx:3CuWZkrjptZYXRzd5PeJFDltABeJQHo0y_MV3l4t6voruCzFpiWeF-GT>
Feedback-ID: i3ed944d6:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue,
 16 Jul 2024 04:14:18 -0400 (EDT)
References: <86eda1kf2w.fsf@HIDDEN>
 <86y17ooj45.fsf@HIDDEN> <87a5k4kb8o.fsf@HIDDEN>
 <87bk4hai6c.fsf@HIDDEN> <86v82avd5j.fsf@HIDDEN>
 <87tthu5u6i.fsf@HIDDEN> <861q4i7ryu.fsf@HIDDEN>
 <87jzhvbyl6.fsf@HIDDEN> <87ttgz14c7.fsf@HIDDEN>
User-agent: mu4e 1.8.15; emacs 30.0.50
From: Aleksandar Dimitrov <mail@HIDDEN>
Date: Tue, 16 Jul 2024 10:11:57 +0200
In-reply-to: <87ttgz14c7.fsf@HIDDEN>
Message-ID: <86r0btzrc7.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.7 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

Hi Po Lu,

>> - the bug with the fringe is fixed in both pgtk and gtk3
>
> Thanks, this portion of the patch has been installed in emacs-30.

Thank you :)

>> - insets are not opaque anymore in pgtk
>> - insets are *black* and opaque with the minimal repro I posted in the beginning of
>>   this thread --with-pgtk
>> - insets are *white* and opaque --with-x-toolkit=gtk3 (again with
>> the minimal repro)
>>
>> I'm not sure why that is, or whether that's a problem.
>
> I'll continue pursuing this matter.

OK, thanks. Since that's not really part of the original problem, I'd
consider the matter resolved. I'll think about making a feature request
in the future to create transparent insets. Thanks for your work on Emacs'
graphical frontends!

Cheers,
Aleks





Message sent:


MIME-Version: 1.0
X-Mailer: MIME-tools 5.505 (Entity 5.505)
X-Loop: help-debbugs@HIDDEN
From: help-debbugs@HIDDEN (GNU bug Tracking System)
To: Stefan Kangas <stefankangas@HIDDEN>
Subject: bug#70697: closed (30.0.50; Frame parameter alpha-background is
 ignored for fringe bitmaps & internal borders)
CC: tracker <at> debbugs.gnu.org
Message-ID: <handler.70697.D70697.174079659511371.ackdone <at> debbugs.gnu.org>
References: <CADwFkmn03_nq57GhNHM7oyoq5LZ9k49b68uC4igBihPEdoYkSA@HIDDEN>
 <871q6liz1x.fsf@HIDDEN>
X-Gnu-PR-Message: closed 70697
X-Gnu-PR-Package: emacs
Date: Sat, 01 Mar 2025 02:37:03 +0000
Content-Type: multipart/mixed; boundary="----------=_1740796623-11517-0"

This is a multi-part message in MIME format...

------------=_1740796623-11517-0
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset=utf-8

Your message dated Fri, 28 Feb 2025 18:36:25 -0800
with message-id <CADwFkmn03_nq57GhNHM7oyoq5LZ9k49b68uC4igBihPEdoYkSA@HIDDEN=
mail.com>
and subject line Re: bug#70697: 30.0.50; Frame parameter alpha-background i=
s ignored for fringe bitmaps & internal borders
has caused the debbugs.gnu.org bug report #70697,
regarding 30.0.50; Frame parameter alpha-background is ignored for fringe b=
itmaps & internal borders
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@HIDDEN)


--=20
70697: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D70697
GNU Bug Tracking System
Contact help-debbugs@HIDDEN with problems

------------=_1740796623-11517-0
Content-Type: message/rfc822
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

Received: (at submit) by debbugs.gnu.org; 1 May 2024 12:02:01 +0000
Received: from localhost ([127.0.0.1]:37111 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1s28et-0003Eb-SG
	for submit <at> debbugs.gnu.org; Wed, 01 May 2024 08:02:01 -0400
Received: from lists.gnu.org ([2001:470:142::17]:56388)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <mail@HIDDEN>) id 1s27a3-00084u-UY
 for submit <at> debbugs.gnu.org; Wed, 01 May 2024 06:52:57 -0400
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 <mail@HIDDEN>) id 1s27Zc-0003X7-US
 for bug-gnu-emacs@HIDDEN; Wed, 01 May 2024 06:52:29 -0400
Received: from wfhigh3-smtp.messagingengine.com ([64.147.123.154])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <mail@HIDDEN>) id 1s27Za-0008KJ-N8
 for bug-gnu-emacs@HIDDEN; Wed, 01 May 2024 06:52:28 -0400
Received: from compute6.internal (compute6.nyi.internal [10.202.2.47])
 by mailfhigh.west.internal (Postfix) with ESMTP id A8B6A1800071
 for <bug-gnu-emacs@HIDDEN>; Wed,  1 May 2024 06:52:22 -0400 (EDT)
Received: from mailfrontend2 ([10.202.2.163])
 by compute6.internal (MEProxy); Wed, 01 May 2024 06:52:22 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aleks.bg; h=cc
 :content-type:content-type:date:date:from:from:in-reply-to
 :message-id:mime-version:reply-to:subject:subject:to:to; s=fm1;
 t=1714560742; x=1714647142; bh=R39nDSXL3UHimOz2HD9KQq1ZdN8dWp4C
 vQryWoJpWwM=; b=VqmzPFpvjYZNQvN3Lk2+YTkIjCXUqm1X8f0o1GZw96zE+Lrv
 FkZKpbcr1jrHMK9Af/Oyf2jbcRYYsDWYaguARfveBovFKr5vYy9IJLcAfFco56vT
 kPQhrdGOmrabaKjNJ78h1FBs4DcoStLE63R9oeNA+d1A5Tnu0nEc9VXCYM6MQR5n
 U94ExM9mcgFPduHTwVUobTJp8bXoMQyeKVyUJJ+6JcZKYwF29Toj0oG1QY2yUN7P
 RqkoLhn5eeMxAE08w376wQjQR+1+6CZpQm+Z3jSplOlf89ow4lb086OvUTYkpaLT
 rF8teCTzbDcOq279mpeRxxJ2RkPhdDiJ1T5K+w==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:content-type:content-type:date:date
 :feedback-id:feedback-id:from:from:in-reply-to:message-id
 :mime-version:reply-to:subject:subject:to:to:x-me-proxy
 :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=
 1714560742; x=1714647142; bh=R39nDSXL3UHimOz2HD9KQq1ZdN8dWp4CvQr
 yWoJpWwM=; b=GHu+jJgHeIfOKkwpJgfxGo+Tblzj5j7JUqGD2IBVEYaO7puIYuz
 VFM5gfJSocgXxGsNksSwHSvjqdU/fLKpmLhP0MVCyEI39/jmXE4cgfxfMLMD2wpf
 VkZ0W/D+PFdJEmBHcwR7rikd3cec7SVR0UrJQ0qBeATwqDYDo54YCIAjm5WuKaJz
 PBtuBnPXFXTgiEmtQjODr9zZBfzjQxi0oj3IvlC6eZ9Z6B3NLF1NeWTupPZfT6L4
 edQrKSc5Fk0aIJmr5xP6duX/rfCencF4Ng632+vyQqZLP5KRQ57mbgXc+iJAM6j3
 CFZLuqMHp54XNOqykF+eOGjavO+5LGXpxyQ==
X-ME-Sender: <xms:5R4yZsQnC_7Hc5nnThyZGJDkdgydyZxaWkyoeVmt5EGUlALL4npH3Q>
 <xme:5R4yZpwiIBkQp1Bd0vly9oufnAF5--sh5lP6krs9bIjDGdATcgU3cwAPmOQWU9Ljf
 H30GTl4-Jube1FgZwE>
X-ME-Received: <xmr:5R4yZp0897hjTOmBGShNymuBOqDWQ4Oz-K2NZeNDgJ3UV6FSyDuvXlU2Jl9UEyKCuUvZS2ZDtUsmpBVtj9Gzn9_lG391Ger4qAWFWTes>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrvdduhedgjedtucetufdoteggodetrfdotf
 fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen
 uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufgffkfggtgesthdtredttd
 ertdenucfhrhhomheptehlvghkshgrnhgurghrucffihhmihhtrhhovhcuoehmrghilhes
 rghlvghkshdrsghgqeenucggtffrrghtthgvrhhnpefhfefhfefgtdelueeivdeuieetle
 evueekjefhfeetheekkeekteeiieehtdejteenucffohhmrghinheprghlvghkshdrsghg
 necuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepmhgrih
 hlsegrlhgvkhhsrdgsgh
X-ME-Proxy: <xmx:5R4yZgBJWS2-bRA0JqFCOtEj1HEJlKT8-51M74YeS-H8mOYTfKODdw>
 <xmx:5R4yZljZ3Q7aU55hb1PFipmyKTOgnnWm_v_q_uMpBA--V4B_sCC8-w>
 <xmx:5R4yZso2wdNm8fToTunJKbqBZTfHdY9HOCGXMXK-Mui8rk247_GDgQ>
 <xmx:5R4yZohhU-G4PI_wrGku9z10ffBhbt8Ig62iAtNZBQhl-oSLR74iYA>
 <xmx:5h4yZlZ0MPXErpKgVZQ4keF8JIWCYLBNh68hubGm47fnYgt86fH_4uPN>
Feedback-ID: i3ed944d6:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA for
 <bug-gnu-emacs@HIDDEN>; Wed, 1 May 2024 06:52:21 -0400 (EDT)
From: Aleksandar Dimitrov <mail@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 30.0.50; Frame parameter alpha-background is ignored for fringe
 bitmaps & internal borders
User-Agent: mu4e 1.12.1; emacs 30.0.50
Date: Wed, 01 May 2024 12:52:58 +0200
Message-ID: <871q6liz1x.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
Received-SPF: pass client-ip=64.147.123.154; envelope-from=mail@HIDDEN;
 helo=wfhigh3-smtp.messagingengine.com
X-Spam_score_int: -27
X-Spam_score: -2.8
X-Spam_bar: --
X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
 RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 0.7 (/)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Wed, 01 May 2024 08:01:53 -0400
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.3 (/)

Hi all,

Runinng in any compositing window manager (this includes Wayland with a
PGTK build of Emacs, but also X without PGTK), the frame parameter
alpha-background is ignored for at least

- fringe bitmaps
- insets drawn with internal-border-width

The resulting visual effect is quite jarring, and makes both of these
difficult to use together with transparency.

Here's a small emacs -Q script to exhibit the problem:

#+begin_src emacs-lisp

;; Turn off scroll bars to make the bugs more visible.
(scroll-bar-mode -1)

;; set transparency & internal border width.
;; Note how the internal border is going to be drawn in a solid white colour
;; and will ignore the alpha value.
(modify-all-frames-parameters '((alpha-background . 50)
                                (internal-border-width . 20)))

(define-fringe-bitmap 'test-bitmap
  (vector (expt 2 15)) nil 16 '(top t))

;; Define a face for the fringe that has a different background colour, to
;; more easily discern the fringe bitmap bug from the internal border bug.
(make-face 'test-face)
(set-face-attribute 'test-face nil :background "pink")

;; Apply a fringe bitmap to all lines in the current buffer. Note how the fringe
;; bitmap is monochrome, but the background colour ignores the global alpha value.
(defun apply-fringe-bitmap ()
  "Apply a fringe bitmap to the current buffer to exhibit the transparency bug."
  (add-text-properties
   (point-min) (point-max)
   '(wrap-prefix
     #(" " 0 1 (display (left-fringe test-bitmap test-face)))
     line-prefix
     #(" " 0 1 (display (left-fringe test-bitmap test-face))))))

(add-hook 'emacs-startup-hook #'apply-fringe-bitmap)

#+end_src


And here's how it looks like: https://aleks.bg/emacs-bug.png
(that's my personal home page, not an image hoster.)

I would expect the white border around the frame to also be transparent,
and the fringe, too.


Aleks



------------=_1740796623-11517-0
Content-Type: message/rfc822
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

Received: (at 70697-done) by debbugs.gnu.org; 1 Mar 2025 02:36:35 +0000
Received: from localhost ([127.0.0.1]:56397 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1toCiR-0002xK-48
	for submit <at> debbugs.gnu.org; Fri, 28 Feb 2025 21:36:35 -0500
Received: from mail-ed1-x52d.google.com ([2a00:1450:4864:20::52d]:42217)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <stefankangas@HIDDEN>)
 id 1toCiN-0002wc-UV
 for 70697-done <at> debbugs.gnu.org; Fri, 28 Feb 2025 21:36:32 -0500
Received: by mail-ed1-x52d.google.com with SMTP id
 4fb4d7f45d1cf-5dccaaca646so5241791a12.0
 for <70697-done <at> debbugs.gnu.org>; Fri, 28 Feb 2025 18:36:31 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1740796586; x=1741401386; darn=debbugs.gnu.org;
 h=cc:to:subject:message-id:date:mime-version:references:in-reply-to
 :from:from:to:cc:subject:date:message-id:reply-to;
 bh=kp7/i2WYA4R+orGB10HkrteLz0e5nLCkhiAEEmnfRhw=;
 b=cdKSzP1gVXpsr8DNyIo86r8ZCPuqRlbY7tjmNUCJofS+mjGqGPkVGaiUNkMFC4dBd2
 sxt/SSwMkUSIQzVNNVbwwlFYFtTrfMPKPO73vKFTvTFJ8LQhsXvx+NA75sVZejT+iML3
 Y48ZyS3qMMdp+8c3k0aHoc2y4n3vMctBgyXmrDY2AMezaFoyZ8aUxpdOrUgXZ4as4eXu
 gDnAERXlvhQ6fNIwIYKouvVPNjqtMHVoiR1LRTSn6oQYQwVnrVHs7Fl6DojxV5oqAY/h
 EMCZawcJoKXjx0WfxpbRWy3EWvJh8Nl5H2+yu7OXCBowC4p1PT2BRERgI5fgGuczFX9G
 Moeg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1740796586; x=1741401386;
 h=cc:to:subject:message-id:date:mime-version:references:in-reply-to
 :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
 bh=kp7/i2WYA4R+orGB10HkrteLz0e5nLCkhiAEEmnfRhw=;
 b=gZLLi9RRnXtBgtco18tBpJRKFx+U+4Fb0Bp71OiGf/scNJpKFN+VY6it2bQqnw721a
 VbT+KuC2Os1Le+StR85rXTMTn8vFBONdNh/5F62zB1EeLqmk+2OZJ/VVnKEtolT0IXHl
 zOeQQxxp1pl0b/3vEEdWkYE5IHFFV7kc60IB7jKmc9XGOM4t8mnphkkA/G9zT9xVuO4o
 yhTKDswqLq+9vLHuWUIiLYHTaUAsroUskJYnJzJ58LU9js2q7ZPpyh0HzunKn99G9F/N
 hINTBm2xEoUuZxode0EfSZ3zHrKg+fsQaRv2mj0A4EQ2GtLVYjhleL3fmI4frhcGLlIx
 DsEA==
X-Forwarded-Encrypted: i=1;
 AJvYcCU9XVu3Gj7d1waZ8g/tTu8cRQ2fB0o0L/TopxFM86XtwAiATSglXUglMpO5mGLqUTgdPzjtjkxO26H9 <at> debbugs.gnu.org
X-Gm-Message-State: AOJu0YzmKTO+LqM8VS6P/GzdMupw3atTQwEajzYaXik2hYYR3O89rAMY
 3rZU/FoqZmHpekEuWxg3vb9+Iv7JIOOtsbDB9LsrWrIJw3yOp+qffFzUxsYQw8M3tM5+MbNe3o0
 y92WkCHrYLSKPOtj4JQoBy47ZhUw=
X-Gm-Gg: ASbGncstDtFL6KptFROzqQij0k8ShCs5TOdh31u4RDb2s5lnvTNNBwgXW1aFfyuVpk3
 /N1pwKZ1IT/38PfdIxabiR3eh0PJkxsWIGEXxZ4v+pBgi1f5y3VoyUai7Sc3z1bx4xpcCahVLy+
 qE6rH+DU5BdJ4TuJDAzzbtoO94RsE=
X-Google-Smtp-Source: AGHT+IHVn78oqazGnEuXZU2ZCxNmYHOFAAVvWdmaLL415XjE9+8do39LPAmDlT4mli/XMufhqnvKHqxiGQHBummmdKc=
X-Received: by 2002:a05:6402:26c9:b0:5de:572c:72cf with SMTP id
 4fb4d7f45d1cf-5e4bfb8067bmr12087996a12.10.1740796585801; Fri, 28 Feb 2025
 18:36:25 -0800 (PST)
Received: from 753933720722 named unknown by gmailapi.google.com with
 HTTPREST; Fri, 28 Feb 2025 18:36:25 -0800
From: Stefan Kangas <stefankangas@HIDDEN>
In-Reply-To: <87ttgz14c7.fsf@HIDDEN>
References: <86eda1kf2w.fsf@HIDDEN>
 <86y17ooj45.fsf@HIDDEN> <87a5k4kb8o.fsf@HIDDEN> <87bk4hai6c.fsf@HIDDEN>
 <86v82avd5j.fsf@HIDDEN> <87tthu5u6i.fsf@HIDDEN> <861q4i7ryu.fsf@HIDDEN>
 <87jzhvbyl6.fsf@HIDDEN> <87ttgz14c7.fsf@HIDDEN>
MIME-Version: 1.0
Date: Fri, 28 Feb 2025 18:36:25 -0800
X-Gm-Features: AQ5f1Jrfp2rG6yEA94q684-4KfCWP1riVA3WkCVH3UJMa3eaP6GZvCFZZziQR3Q
Message-ID: <CADwFkmn03_nq57GhNHM7oyoq5LZ9k49b68uC4igBihPEdoYkSA@HIDDEN>
Subject: Re: bug#70697: 30.0.50; Frame parameter alpha-background is ignored
 for fringe bitmaps & internal borders
To: Po Lu <luangruo@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 70697-done
Cc: Eli Zaretskii <eliz@HIDDEN>, Aleksandar Dimitrov <mail@HIDDEN>,
 70697-done <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Po Lu <luangruo@HIDDEN> writes:

> Aleksandar Dimitrov <mail@HIDDEN> writes:
>
>> Hi Eli, Po Lu,
>>
>> sorry for taking a while to get back to you, I've had a busy week or
>> two.
>>
>> I've tried out Po Lu's patch. Now:
>>
>> - the bug with the fringe is fixed in both pgtk and gtk3
>
> Thanks, this portion of the patch has been installed in emacs-30.

I'm therefore closing this bug report.

>> - insets are not opaque anymore in pgtk
>> - insets are *black* and opaque with the minimal repro I posted in the beginning of
>>   this thread --with-pgtk
>> - insets are *white* and opaque --with-x-toolkit=gtk3 (again with the minimal repro)
>>
>> I'm not sure why that is, or whether that's a problem.
>
> I'll continue pursuing this matter.


------------=_1740796623-11517-0--


Message sent:


MIME-Version: 1.0
X-Mailer: MIME-tools 5.505 (Entity 5.505)
X-Loop: help-debbugs@HIDDEN
From: help-debbugs@HIDDEN (GNU bug Tracking System)
To: Aleksandar Dimitrov <mail@HIDDEN>
Subject: bug#70697: closed (Re: bug#70697: 30.0.50; Frame parameter
 alpha-background is ignored for fringe bitmaps & internal borders)
Message-ID: <handler.70697.D70697.174079659511371.notifdone <at> debbugs.gnu.org>
References: <CADwFkmn03_nq57GhNHM7oyoq5LZ9k49b68uC4igBihPEdoYkSA@HIDDEN>
 <871q6liz1x.fsf@HIDDEN>
X-Gnu-PR-Message: they-closed 70697
X-Gnu-PR-Package: emacs
Reply-To: 70697 <at> debbugs.gnu.org
Date: Sat, 01 Mar 2025 02:37:03 +0000
Content-Type: multipart/mixed; boundary="----------=_1740796623-11517-1"

This is a multi-part message in MIME format...

------------=_1740796623-11517-1
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset="utf-8"

Your bug report

#70697: 30.0.50; Frame parameter alpha-background is ignored for fringe bit=
maps & internal borders

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 70697 <at> debbugs.gnu.org.

--=20
70697: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D70697
GNU Bug Tracking System
Contact help-debbugs@HIDDEN with problems

------------=_1740796623-11517-1
Content-Type: message/rfc822
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

Received: (at 70697-done) by debbugs.gnu.org; 1 Mar 2025 02:36:35 +0000
Received: from localhost ([127.0.0.1]:56397 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1toCiR-0002xK-48
	for submit <at> debbugs.gnu.org; Fri, 28 Feb 2025 21:36:35 -0500
Received: from mail-ed1-x52d.google.com ([2a00:1450:4864:20::52d]:42217)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <stefankangas@HIDDEN>)
 id 1toCiN-0002wc-UV
 for 70697-done <at> debbugs.gnu.org; Fri, 28 Feb 2025 21:36:32 -0500
Received: by mail-ed1-x52d.google.com with SMTP id
 4fb4d7f45d1cf-5dccaaca646so5241791a12.0
 for <70697-done <at> debbugs.gnu.org>; Fri, 28 Feb 2025 18:36:31 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1740796586; x=1741401386; darn=debbugs.gnu.org;
 h=cc:to:subject:message-id:date:mime-version:references:in-reply-to
 :from:from:to:cc:subject:date:message-id:reply-to;
 bh=kp7/i2WYA4R+orGB10HkrteLz0e5nLCkhiAEEmnfRhw=;
 b=cdKSzP1gVXpsr8DNyIo86r8ZCPuqRlbY7tjmNUCJofS+mjGqGPkVGaiUNkMFC4dBd2
 sxt/SSwMkUSIQzVNNVbwwlFYFtTrfMPKPO73vKFTvTFJ8LQhsXvx+NA75sVZejT+iML3
 Y48ZyS3qMMdp+8c3k0aHoc2y4n3vMctBgyXmrDY2AMezaFoyZ8aUxpdOrUgXZ4as4eXu
 gDnAERXlvhQ6fNIwIYKouvVPNjqtMHVoiR1LRTSn6oQYQwVnrVHs7Fl6DojxV5oqAY/h
 EMCZawcJoKXjx0WfxpbRWy3EWvJh8Nl5H2+yu7OXCBowC4p1PT2BRERgI5fgGuczFX9G
 Moeg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1740796586; x=1741401386;
 h=cc:to:subject:message-id:date:mime-version:references:in-reply-to
 :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
 bh=kp7/i2WYA4R+orGB10HkrteLz0e5nLCkhiAEEmnfRhw=;
 b=gZLLi9RRnXtBgtco18tBpJRKFx+U+4Fb0Bp71OiGf/scNJpKFN+VY6it2bQqnw721a
 VbT+KuC2Os1Le+StR85rXTMTn8vFBONdNh/5F62zB1EeLqmk+2OZJ/VVnKEtolT0IXHl
 zOeQQxxp1pl0b/3vEEdWkYE5IHFFV7kc60IB7jKmc9XGOM4t8mnphkkA/G9zT9xVuO4o
 yhTKDswqLq+9vLHuWUIiLYHTaUAsroUskJYnJzJ58LU9js2q7ZPpyh0HzunKn99G9F/N
 hINTBm2xEoUuZxode0EfSZ3zHrKg+fsQaRv2mj0A4EQ2GtLVYjhleL3fmI4frhcGLlIx
 DsEA==
X-Forwarded-Encrypted: i=1;
 AJvYcCU9XVu3Gj7d1waZ8g/tTu8cRQ2fB0o0L/TopxFM86XtwAiATSglXUglMpO5mGLqUTgdPzjtjkxO26H9 <at> debbugs.gnu.org
X-Gm-Message-State: AOJu0YzmKTO+LqM8VS6P/GzdMupw3atTQwEajzYaXik2hYYR3O89rAMY
 3rZU/FoqZmHpekEuWxg3vb9+Iv7JIOOtsbDB9LsrWrIJw3yOp+qffFzUxsYQw8M3tM5+MbNe3o0
 y92WkCHrYLSKPOtj4JQoBy47ZhUw=
X-Gm-Gg: ASbGncstDtFL6KptFROzqQij0k8ShCs5TOdh31u4RDb2s5lnvTNNBwgXW1aFfyuVpk3
 /N1pwKZ1IT/38PfdIxabiR3eh0PJkxsWIGEXxZ4v+pBgi1f5y3VoyUai7Sc3z1bx4xpcCahVLy+
 qE6rH+DU5BdJ4TuJDAzzbtoO94RsE=
X-Google-Smtp-Source: AGHT+IHVn78oqazGnEuXZU2ZCxNmYHOFAAVvWdmaLL415XjE9+8do39LPAmDlT4mli/XMufhqnvKHqxiGQHBummmdKc=
X-Received: by 2002:a05:6402:26c9:b0:5de:572c:72cf with SMTP id
 4fb4d7f45d1cf-5e4bfb8067bmr12087996a12.10.1740796585801; Fri, 28 Feb 2025
 18:36:25 -0800 (PST)
Received: from 753933720722 named unknown by gmailapi.google.com with
 HTTPREST; Fri, 28 Feb 2025 18:36:25 -0800
From: Stefan Kangas <stefankangas@HIDDEN>
In-Reply-To: <87ttgz14c7.fsf@HIDDEN>
References: <86eda1kf2w.fsf@HIDDEN>
 <86y17ooj45.fsf@HIDDEN> <87a5k4kb8o.fsf@HIDDEN> <87bk4hai6c.fsf@HIDDEN>
 <86v82avd5j.fsf@HIDDEN> <87tthu5u6i.fsf@HIDDEN> <861q4i7ryu.fsf@HIDDEN>
 <87jzhvbyl6.fsf@HIDDEN> <87ttgz14c7.fsf@HIDDEN>
MIME-Version: 1.0
Date: Fri, 28 Feb 2025 18:36:25 -0800
X-Gm-Features: AQ5f1Jrfp2rG6yEA94q684-4KfCWP1riVA3WkCVH3UJMa3eaP6GZvCFZZziQR3Q
Message-ID: <CADwFkmn03_nq57GhNHM7oyoq5LZ9k49b68uC4igBihPEdoYkSA@HIDDEN>
Subject: Re: bug#70697: 30.0.50; Frame parameter alpha-background is ignored
 for fringe bitmaps & internal borders
To: Po Lu <luangruo@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 70697-done
Cc: Eli Zaretskii <eliz@HIDDEN>, Aleksandar Dimitrov <mail@HIDDEN>,
 70697-done <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Po Lu <luangruo@HIDDEN> writes:

> Aleksandar Dimitrov <mail@HIDDEN> writes:
>
>> Hi Eli, Po Lu,
>>
>> sorry for taking a while to get back to you, I've had a busy week or
>> two.
>>
>> I've tried out Po Lu's patch. Now:
>>
>> - the bug with the fringe is fixed in both pgtk and gtk3
>
> Thanks, this portion of the patch has been installed in emacs-30.

I'm therefore closing this bug report.

>> - insets are not opaque anymore in pgtk
>> - insets are *black* and opaque with the minimal repro I posted in the beginning of
>>   this thread --with-pgtk
>> - insets are *white* and opaque --with-x-toolkit=gtk3 (again with the minimal repro)
>>
>> I'm not sure why that is, or whether that's a problem.
>
> I'll continue pursuing this matter.


------------=_1740796623-11517-1
Content-Type: message/rfc822
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

Received: (at submit) by debbugs.gnu.org; 1 May 2024 12:02:01 +0000
Received: from localhost ([127.0.0.1]:37111 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1s28et-0003Eb-SG
	for submit <at> debbugs.gnu.org; Wed, 01 May 2024 08:02:01 -0400
Received: from lists.gnu.org ([2001:470:142::17]:56388)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <mail@HIDDEN>) id 1s27a3-00084u-UY
 for submit <at> debbugs.gnu.org; Wed, 01 May 2024 06:52:57 -0400
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 <mail@HIDDEN>) id 1s27Zc-0003X7-US
 for bug-gnu-emacs@HIDDEN; Wed, 01 May 2024 06:52:29 -0400
Received: from wfhigh3-smtp.messagingengine.com ([64.147.123.154])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <mail@HIDDEN>) id 1s27Za-0008KJ-N8
 for bug-gnu-emacs@HIDDEN; Wed, 01 May 2024 06:52:28 -0400
Received: from compute6.internal (compute6.nyi.internal [10.202.2.47])
 by mailfhigh.west.internal (Postfix) with ESMTP id A8B6A1800071
 for <bug-gnu-emacs@HIDDEN>; Wed,  1 May 2024 06:52:22 -0400 (EDT)
Received: from mailfrontend2 ([10.202.2.163])
 by compute6.internal (MEProxy); Wed, 01 May 2024 06:52:22 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aleks.bg; h=cc
 :content-type:content-type:date:date:from:from:in-reply-to
 :message-id:mime-version:reply-to:subject:subject:to:to; s=fm1;
 t=1714560742; x=1714647142; bh=R39nDSXL3UHimOz2HD9KQq1ZdN8dWp4C
 vQryWoJpWwM=; b=VqmzPFpvjYZNQvN3Lk2+YTkIjCXUqm1X8f0o1GZw96zE+Lrv
 FkZKpbcr1jrHMK9Af/Oyf2jbcRYYsDWYaguARfveBovFKr5vYy9IJLcAfFco56vT
 kPQhrdGOmrabaKjNJ78h1FBs4DcoStLE63R9oeNA+d1A5Tnu0nEc9VXCYM6MQR5n
 U94ExM9mcgFPduHTwVUobTJp8bXoMQyeKVyUJJ+6JcZKYwF29Toj0oG1QY2yUN7P
 RqkoLhn5eeMxAE08w376wQjQR+1+6CZpQm+Z3jSplOlf89ow4lb086OvUTYkpaLT
 rF8teCTzbDcOq279mpeRxxJ2RkPhdDiJ1T5K+w==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:content-type:content-type:date:date
 :feedback-id:feedback-id:from:from:in-reply-to:message-id
 :mime-version:reply-to:subject:subject:to:to:x-me-proxy
 :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=
 1714560742; x=1714647142; bh=R39nDSXL3UHimOz2HD9KQq1ZdN8dWp4CvQr
 yWoJpWwM=; b=GHu+jJgHeIfOKkwpJgfxGo+Tblzj5j7JUqGD2IBVEYaO7puIYuz
 VFM5gfJSocgXxGsNksSwHSvjqdU/fLKpmLhP0MVCyEI39/jmXE4cgfxfMLMD2wpf
 VkZ0W/D+PFdJEmBHcwR7rikd3cec7SVR0UrJQ0qBeATwqDYDo54YCIAjm5WuKaJz
 PBtuBnPXFXTgiEmtQjODr9zZBfzjQxi0oj3IvlC6eZ9Z6B3NLF1NeWTupPZfT6L4
 edQrKSc5Fk0aIJmr5xP6duX/rfCencF4Ng632+vyQqZLP5KRQ57mbgXc+iJAM6j3
 CFZLuqMHp54XNOqykF+eOGjavO+5LGXpxyQ==
X-ME-Sender: <xms:5R4yZsQnC_7Hc5nnThyZGJDkdgydyZxaWkyoeVmt5EGUlALL4npH3Q>
 <xme:5R4yZpwiIBkQp1Bd0vly9oufnAF5--sh5lP6krs9bIjDGdATcgU3cwAPmOQWU9Ljf
 H30GTl4-Jube1FgZwE>
X-ME-Received: <xmr:5R4yZp0897hjTOmBGShNymuBOqDWQ4Oz-K2NZeNDgJ3UV6FSyDuvXlU2Jl9UEyKCuUvZS2ZDtUsmpBVtj9Gzn9_lG391Ger4qAWFWTes>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrvdduhedgjedtucetufdoteggodetrfdotf
 fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen
 uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufgffkfggtgesthdtredttd
 ertdenucfhrhhomheptehlvghkshgrnhgurghrucffihhmihhtrhhovhcuoehmrghilhes
 rghlvghkshdrsghgqeenucggtffrrghtthgvrhhnpefhfefhfefgtdelueeivdeuieetle
 evueekjefhfeetheekkeekteeiieehtdejteenucffohhmrghinheprghlvghkshdrsghg
 necuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepmhgrih
 hlsegrlhgvkhhsrdgsgh
X-ME-Proxy: <xmx:5R4yZgBJWS2-bRA0JqFCOtEj1HEJlKT8-51M74YeS-H8mOYTfKODdw>
 <xmx:5R4yZljZ3Q7aU55hb1PFipmyKTOgnnWm_v_q_uMpBA--V4B_sCC8-w>
 <xmx:5R4yZso2wdNm8fToTunJKbqBZTfHdY9HOCGXMXK-Mui8rk247_GDgQ>
 <xmx:5R4yZohhU-G4PI_wrGku9z10ffBhbt8Ig62iAtNZBQhl-oSLR74iYA>
 <xmx:5h4yZlZ0MPXErpKgVZQ4keF8JIWCYLBNh68hubGm47fnYgt86fH_4uPN>
Feedback-ID: i3ed944d6:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA for
 <bug-gnu-emacs@HIDDEN>; Wed, 1 May 2024 06:52:21 -0400 (EDT)
From: Aleksandar Dimitrov <mail@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 30.0.50; Frame parameter alpha-background is ignored for fringe
 bitmaps & internal borders
User-Agent: mu4e 1.12.1; emacs 30.0.50
Date: Wed, 01 May 2024 12:52:58 +0200
Message-ID: <871q6liz1x.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
Received-SPF: pass client-ip=64.147.123.154; envelope-from=mail@HIDDEN;
 helo=wfhigh3-smtp.messagingengine.com
X-Spam_score_int: -27
X-Spam_score: -2.8
X-Spam_bar: --
X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
 RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 0.7 (/)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Wed, 01 May 2024 08:01:53 -0400
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.3 (/)

Hi all,

Runinng in any compositing window manager (this includes Wayland with a
PGTK build of Emacs, but also X without PGTK), the frame parameter
alpha-background is ignored for at least

- fringe bitmaps
- insets drawn with internal-border-width

The resulting visual effect is quite jarring, and makes both of these
difficult to use together with transparency.

Here's a small emacs -Q script to exhibit the problem:

#+begin_src emacs-lisp

;; Turn off scroll bars to make the bugs more visible.
(scroll-bar-mode -1)

;; set transparency & internal border width.
;; Note how the internal border is going to be drawn in a solid white colour
;; and will ignore the alpha value.
(modify-all-frames-parameters '((alpha-background . 50)
                                (internal-border-width . 20)))

(define-fringe-bitmap 'test-bitmap
  (vector (expt 2 15)) nil 16 '(top t))

;; Define a face for the fringe that has a different background colour, to
;; more easily discern the fringe bitmap bug from the internal border bug.
(make-face 'test-face)
(set-face-attribute 'test-face nil :background "pink")

;; Apply a fringe bitmap to all lines in the current buffer. Note how the fringe
;; bitmap is monochrome, but the background colour ignores the global alpha value.
(defun apply-fringe-bitmap ()
  "Apply a fringe bitmap to the current buffer to exhibit the transparency bug."
  (add-text-properties
   (point-min) (point-max)
   '(wrap-prefix
     #(" " 0 1 (display (left-fringe test-bitmap test-face)))
     line-prefix
     #(" " 0 1 (display (left-fringe test-bitmap test-face))))))

(add-hook 'emacs-startup-hook #'apply-fringe-bitmap)

#+end_src


And here's how it looks like: https://aleks.bg/emacs-bug.png
(that's my personal home page, not an image hoster.)

I would expect the white border around the frame to also be transparent,
and the fringe, too.


Aleks



------------=_1740796623-11517-1--



Last modified: Sat, 1 Mar 2025 02:45:01 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.