From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andrew Cohen Newsgroups: gmane.emacs.bugs Subject: bug#54040: 29.0.50; Text becomes blurry on PGTK/Wayland Date: Thu, 17 Mar 2022 08:00:16 +0800 Message-ID: <87k0ctxxbj.fsf@ust.hk> References: <87bkz5wz5o.fsf@schnouki.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18244"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) To: 54040@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Mar 17 01:01:15 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nUdZq-0004Zd-RW for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 17 Mar 2022 01:01:15 +0100 Original-Received: from localhost ([::1]:53504 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nUdZp-0000L1-QW for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 16 Mar 2022 20:01:13 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:37602) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nUdZe-0000Jw-Uv for bug-gnu-emacs@gnu.org; Wed, 16 Mar 2022 20:01:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58643) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nUdZe-0002wn-LH for bug-gnu-emacs@gnu.org; Wed, 16 Mar 2022 20:01:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nUdZe-0003c3-GM for bug-gnu-emacs@gnu.org; Wed, 16 Mar 2022 20:01:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <87bkz5wz5o.fsf@schnouki.net> Resent-From: Andrew Cohen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 17 Mar 2022 00:01:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54040 X-GNU-PR-Package: emacs Original-Received: via spool by 54040-submit@debbugs.gnu.org id=B54040.164747523113830 (code B ref 54040); Thu, 17 Mar 2022 00:01:02 +0000 Original-Received: (at 54040) by debbugs.gnu.org; 17 Mar 2022 00:00:31 +0000 Original-Received: from localhost ([127.0.0.1]:52539 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nUdZ8-0003b0-Mg for submit@debbugs.gnu.org; Wed, 16 Mar 2022 20:00:30 -0400 Original-Received: from mail-os0jpn01on2113.outbound.protection.outlook.com ([40.107.113.113]:49463 helo=JPN01-OS0-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nUdZ6-0003ai-Ep for 54040@debbugs.gnu.org; Wed, 16 Mar 2022 20:00:29 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UjF0fCM9j/fY6psjxEDl2CiCCZDQgurT1jrLpY/3yOz+P8RRqRq5CrPZYvij6loZVcgDonS9G403D1ts011JY6wJFkShmZWgi9W4opJnBxKw7YAkdBQuUF1OgjTR6A4cUx1XWaUrbzjXiJZ44kOXCLfD7cILuGmUEMoP5/nB+HmxA/unYilmtAmGQM5+hIi0AeV597wMMVScPMyKg8Uw/YSo/bAou7TCs/wDPLtHKhs4yaZNfJUFmWPBUHTvEAEV1lf0HYuycpn1MPRoTqrKMpzOocrLfJmxAr4ZjTxVH9U1k6EUG+VxZq5AfohhqpeqhA/uoNbOpfxbzoEFssimhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=GPmtXtSaj9qVINJahUDUTz5Uux+Fhs0jVnQwUDlRmLo=; b=aLVyBk0HRBe3EAcOtw677jiiLV7SrS1vYgre8+D2I+0sjyrXH3DS4r5AjZAmKWkM61TkNTZP+3U/s0Rb09xc1mWnnlGAkN9I1fCfWQQVFWgC2uhyjUsOhTQ2yVK+PLKF00uP3Sq5jlOdez6c8n+H1TDVZCY1HkxqynhH1c9PoVTTxAK+U+gqIlRwFKCLPqDCkLXmHc+Z/ABI0nbpf8uWRnMopfLiAMmHR2kOOvA7ZXnNw8HP9p+FjH3dzd/hidtpoP/XD9YRKU7ukzq0ja6EsXEOyJlGP1B8RQQX7HVe5quKvsGNkl/m6D6t0L/c+6FpDP5zK2RcYskVO8U5G6lQeg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=ust.hk; dmarc=pass action=none header.from=ust.hk; dkim=pass header.d=ust.hk; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ust.hk; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=GPmtXtSaj9qVINJahUDUTz5Uux+Fhs0jVnQwUDlRmLo=; b=wRMD3S3vZbhj5xJjFm8aCS7et3jH6Orla+uxzoHDvUwldL9jgMNHFXrj5cMzyCmIvFyP0wv5feoyRWIVQALx/RtARDFzGaCnn5VVmJ4qRwaG7Q3xL6x/G4/Rf3dSbsVvHRsjyEu9lst3vkVxbG21tf+piBm2ORKBT/tKLFFuO5KWDmbqjL7u/yoc252C9aHvChZuyOOR9mW9Gv62Wyrt1q0U1HRC6KVZT6JhVcgkVBJ/wzaPK7v3qriV/z+mtwc12uu0E29N+tvvxIHCus8HZTtci/4B0YFSCh1RDeM97Eo19jpd4M8+9QfWR5e6ZTSAebn6I7fqhmE3N/HbnxKs1w== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=ust.hk; Original-Received: from OS3P286MB1877.JPNP286.PROD.OUTLOOK.COM (2603:1096:604:1bf::11) by TYAP286MB0889.JPNP286.PROD.OUTLOOK.COM (2603:1096:402:3a::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5081.14; Thu, 17 Mar 2022 00:00:19 +0000 Original-Received: from OS3P286MB1877.JPNP286.PROD.OUTLOOK.COM ([fe80::3dec:f964:3c31:30f]) by OS3P286MB1877.JPNP286.PROD.OUTLOOK.COM ([fe80::3dec:f964:3c31:30f%8]) with mapi id 15.20.5081.017; Thu, 17 Mar 2022 00:00:19 +0000 X-ClientProxiedBy: HK2PR06CA0015.apcprd06.prod.outlook.com (2603:1096:202:2e::27) To OS3P286MB1877.JPNP286.PROD.OUTLOOK.COM (2603:1096:604:1bf::11) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 5084d741-f8e7-4e0a-739d-08da07a91f87 X-MS-TrafficTypeDiagnostic: TYAP286MB0889:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Q4YzrB/h4HYz0+TUm558tXCRuKRzjndrGJTqEBvONIA0/G8CX0C383B254jDqufhbJfdMM3tyBefMoisv7A0FfMPi1XwjJBQaIIpOrZB0pW7qqzHybRnE2yOe+5cqqa3hRK90SQmyYM0ytZV8jBJFsFmLu3zGgrhpqgO9Eg4TRlGbgFNU2Fj8z6u7fOYBko6L5Ffa7swQ6plp9baJD7QSN9Ov3iJxUX36nsoZPnc7QZBzZvC7reJFLw57lOUPNComvEGrcHyYtzwnhTFCus2pVI68MOKoJ3gnpxxqiRR5d7jh30Waz2lHxphmhae8zoyA729FNt9nZRXQCjWlyT4Fd5w2y7iD5rzBJO4DSBtQdS/xqZMU9w3x/mHh5E26GM0eo4doKMwTvDd2tdFIUYS/He6hh1wQR8C5/5Mxju6kpw/0qCYgbFr1sbLD89MxHIPa+EZnlqAwCGDEMPIgqPkZV7Ht2NqHazhODN+HkGHZHYfhD+7pkKUOIOSxjid4WK1hSOrId5nFc5U2m0NCuv8+t5YOJdt8tHB4Jztx6AXYX1LTkov2SXz0SC7Wvk0I95AYTILsnRlcBi/s8SVopzflcf5fB46zYtNlNYJF7vNjPsqnhHl+L+5SFUYWWq+BJj7QLxEt9ZlUVK2FS2Mw2X7Cg== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:OS3P286MB1877.JPNP286.PROD.OUTLOOK.COM; PTR:; CAT:NONE; SFS:(13230001)(4636009)(366004)(86362001)(8936002)(2906002)(786003)(38100700002)(316002)(6512007)(6916009)(26005)(186003)(2616005)(508600001)(66556008)(6666004)(6486002)(6506007)(66476007)(66946007)(8676002)(83380400001)(36756003)(5660300002); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: T0zGpNr5byvswWNOSpAA6yknShrON1jhBYoonZ5kaY9A4lxMPED7MA+lTuZSSYo+mGUHhWDFFN5rcBm2PrPiDRu3niNrjziqOulsJ3lYkK/dEeWvl2XDSMvtECuBWggkzKBKULCRPshiHLfbfllJRBtbVJfn0gMKxDzbtGlw18YNnopf/Fw9zoR3380nM7iQK3nLKknjD81JiCf2DWHg6kivO7mSmC+ymAm7ZhFiPx2i+EZpphXjSpspAYdskscvAdhdrgfg8und+pnBsszb1tt3wnV+RZiNGk1/lnAUfptzFuIlMeo7PfJmZgpGuRNOEOGkmbvJp7WIJcqPvwgPtj5ZkcyepX/0PWTr6PAVsP9w5LpZr99Kjea+swKNyPh0sSYw0zTfaSMTw03N9B5JdOf6PuGDxDoDycTKRC5eOuAHPo7VFjJa/bhQezPY/RkEc0jKKxSjstwwxkUjQtw+F7irOsh5oceZ36tXe5RfjhqFXhCQ/eh/c8ncFTMxt2yFEpkeFva6mSUnZtziOovKTKxK+wXBZAerWFVNyfBvrXgn3BQ//L7nrK2nRHmWipEe/S1pUKfeWa3Ab4Db9QgTaYrTjf9yquilcHUFNDAPjn5nRY2YTCwgNe3I32VoAjUhZrO3zUIRjE9oYueb1c/otDbTWaM1MjM3fCaDa+i9FQ4f3AJx8JyfjqHSYzuJJSfEQibkmb1PfEEXSTMD6EGVuLSmhGNnulhnElk6iH8D3lcA2RcTuR/cGji8tx fEE8GR3MtC5pkeNmaj/EYoziRn0PhL00lINR9MJ1L987Vlsb804MdrivO80jBouPGi3CRR1rf0kC3Z5IT+fPwUimIoGi1JYGiW X-OriginatorOrg: ust.hk X-MS-Exchange-CrossTenant-Network-Message-Id: 5084d741-f8e7-4e0a-739d-08da07a91f87 X-MS-Exchange-CrossTenant-AuthSource: OS3P286MB1877.JPNP286.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Mar 2022 00:00:18.8840 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: c917f3e2-9322-4926-9bb3-daca730413ca X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: LHPkWRMX7aqHP/R/IBEM+rB7YBnITSPFX4F8wGe7r/DMYO/FrP9tf+oXe8EaXuG6 X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYAP286MB0889 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:228453 Archived-At: I have been trying various mods to try to clarify the status. Don't know whether or not any of this is useful :( I think all of these were tried before but I wanted to summarize four cases: 1. The width and height used for the temporary surface: I don't really know what the "right" values are, but the current code uses FRAME_CR_SURFACE_DESIRED_WIDTH (f), etc. I tried changing this to src_rect->width, etc In debugging I can see that these values differ (the FRAME_CR_SURFACE width is larger by the pixel-width of the scrollbar, e.g., and the height from the src_rect varies a lot from call to call while the FRAME_CR_SURFACE stays fixed) 2. Replacing the gdk_window_create_similar_surface with cairo_surface_create_similar. So that's four possible cases. All fail (in the same way, with blurry image) EXCEPT cario_surface_create_similar (FRAME_CR_SURFACE (f), CAIRO_CONTENT_COLOR_ALPHA, (int) src_rect->width, (int) src_rect->height) I see the comment in the bug thread that this breaks the alpha-background, but it seems to work fine for me? I didn't try much, just (set-frame-parameter (selected-frame) 'alpha-background 85) and it behaved exactly as it did without the change. I notice that the code for gdk_window_create_similar_surface ends up calling cairo_surface_create_similar (I think) I'm happy to continue trying things if you have any other suggestions. But maybe the switch to cairo_surface_create_similar is OK? -- Andrew Cohen