From mooarturocruz at gmail.com Tue May 3 01:06:48 2022 From: mooarturocruz at gmail.com (Arturo cruz Moo) Date: Mon, 2 May 2022 19:06:48 -0600 Subject: [PATCH 3/9] exa: add GC private Message-ID: -------------- next part -------------- An HTML attachment was scrubbed... URL: From mattst88 at gmail.com Tue May 3 20:50:41 2022 From: mattst88 at gmail.com (Matt Turner) Date: Tue, 3 May 2022 13:50:41 -0700 Subject: [ANNOUNCE] xcb-proto 1.15 Message-ID: <20220503205041.32ailnubks2hwkus@framework> Alan Coopersmith (1): xproto.xml: Update doc text for GrabKey Alex Richardson (1): Fix python version check from 65169c1af7893882c21d1e2a544903212b8d6fb0 Joshua Root (1): Adjust to automake 1.16.4 changes Matt Turner (1): xcb-proto 1.15 Olivier Fourdan (1): xfixes: Add ClientDisconnectMode Peter Harris (1): glx,xprint: place explicit padding between lists Povilas Kanapickas (3): Add element to specify expression that defines length of a struct xinput: Add length specification for DeviceClass struct xinput: Add XI v2.4 Uli Schlachter (2): Add missing fields to errors Use xml.etree.cElementTree where appropriate git tag: xcb-proto-1.15 https://xorg.freedesktop.org/archive/individual/proto/xcb-proto-1.15.tar.gz SHA256: 0e434af76af722ef9b2dc21066da1cd11e5dd85fc1996d66228d090f9ae9b217 xcb-proto-1.15.tar.gz SHA512: 9d98713d14249e4d0eb4ffe88922a343f7083e2773a336e24075a43981b5b2c5373fe6100919d500d109c317e79d68fca211d65eab6a22e0f7fd8abb052bea51 xcb-proto-1.15.tar.gz PGP: https://xorg.freedesktop.org/archive/individual/proto/xcb-proto-1.15.tar.gz.sig https://xorg.freedesktop.org/archive/individual/proto/xcb-proto-1.15.tar.xz SHA256: d34c3b264e8365d16fa9db49179cfa3e9952baaf9275badda0f413966b65955f xcb-proto-1.15.tar.xz SHA512: a333ac7c39f17ff2567419d09a9a77210c943a4e88d79eb152d416ae26bf6fb14e2446f9817abc806edd7aa3733bd4de5852b5ae90a25cbcc9d40e59c211aa36 xcb-proto-1.15.tar.xz PGP: https://xorg.freedesktop.org/archive/individual/proto/xcb-proto-1.15.tar.xz.sig -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 376 bytes Desc: not available URL: From mattst88 at gmail.com Tue May 3 22:18:36 2022 From: mattst88 at gmail.com (Matt Turner) Date: Tue, 3 May 2022 15:18:36 -0700 Subject: [ANNOUNCE] libxcb 1.15 Message-ID: <20220503221836.bm3xhuxpbjappkxa@framework> Alan Coopersmith (1): xcb_auth: Quiet -Wimplicit-fallthrough warning in get_authptr() Demi Marie Obenour (1): Fix integer overflows in xcb_in.c Eduardo S?nchez Mu?oz (1): Use the 'present' field to properly check that the XC-MISC Hodong (1): Fix a memory leak Julien Cristau (2): Increment libtool version info for libxcb-dri3 Add newline when printing auth/connection failure string to stderr Matt Turner (1): libxcb 1.15 Peter Harris (2): Fix build on Windows Fix writev emulation on Windows Povilas Kanapickas (4): c_client.py: Extract get_expr_field_names() c_client.py: Use get_expr_field_names directly to resolve list fields c_client: Extract _c_get_field_mapping_for_expr() c_client.py: Implement handling of element Ran Benita (3): tests: don't use deprecated fail_unless check API gitignore: add files generated by make check Avoid request counter truncation in replies map after 2**32 requests Thomas Anderson (1): Fix hang in xcb_request_check() Uli Schlachter (1): Improve/fix docs for reply fds functions git tag: libxcb-1.15 https://xorg.freedesktop.org/archive/individual/lib/libxcb-1.15.tar.gz SHA256: 1cb65df8543a69ec0555ac696123ee386321dfac1964a3da39976c9a05ad724d libxcb-1.15.tar.gz SHA512: 4099899c37fdda62a9a0883863ee9e50b5072e8f396ba6f4594965d9f1743fb6ea991974a99974c6f39bac14ce9aad5669fa633ac1ad2390280d613cc66eb00e libxcb-1.15.tar.gz PGP: https://xorg.freedesktop.org/archive/individual/lib/libxcb-1.15.tar.gz.sig https://xorg.freedesktop.org/archive/individual/lib/libxcb-1.15.tar.xz SHA256: cc38744f817cf6814c847e2df37fcb8997357d72fa4bcbc228ae0fe47219a059 libxcb-1.15.tar.xz SHA512: f6c7d766b7cf9cab6abe948ee424cbae6951dbfe2f76fa58a109cdc05b0f0919dcc4e38176a22ff4b95fc1e38596115317e32ba33b24cae0035a4e30dbcbdad9 libxcb-1.15.tar.xz PGP: https://xorg.freedesktop.org/archive/individual/lib/libxcb-1.15.tar.xz.sig -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 376 bytes Desc: not available URL: From ale.schenberg at yandex.com Sun May 15 23:06:12 2022 From: ale.schenberg at yandex.com (alexandre schenberg) Date: Sun, 15 May 2022 20:06:12 -0300 Subject: Malloc error when cross compiling libXt-1.2.1 Message-ID: <105751652655531@mail.yandex.com> An HTML attachment was scrubbed... URL: From dickey at his.com Sun May 15 23:26:34 2022 From: dickey at his.com (Thomas Dickey) Date: Sun, 15 May 2022 19:26:34 -0400 (EDT) Subject: Malloc error when cross compiling libXt-1.2.1 In-Reply-To: <105751652655531@mail.yandex.com> References: <105751652655531@mail.yandex.com> Message-ID: <1234916815.6933952.1652657194763.JavaMail.zimbra@his.com> ----- Original Message ----- | From: "alexandre schenberg" | To: xorg at lists.x.org | Sent: Sunday, May 15, 2022 7:06:12 PM | Subject: Malloc error when cross compiling libXt-1.2.1 | Hello. When I try to cross compile libXT 1.2.1 (or any version) for i386, I | receive: | || configure:18569: checking whether malloc(0) returns NULL looks like https://gitlab.freedesktop.org/xorg/lib/libxt/-/blob/edd70bdfbbd16247e3d9564ca51d864f82626eb7/configure.ac XORG_CHECK_MALLOC_ZERO which comes from here: https://gitlab.freedesktop.org/xorg/util/macros/-/blob/master/xorg-macros.m4.in https://gitlab.freedesktop.org/xorg/util/macros/-/blob/master/xorg-macros.m4.in#L1370 and as explained here https://www.gnu.org/software/autoconf/manual/autoconf-2.63/html_node/Runtime.html it's lacking a third choice on the end of the AC_RUN_IFELSE macro. Overlooked here: https://gitlab.freedesktop.org/xorg/util/macros/-/commit/af0164c2ded2dcc95b72ca3b9bfbad9b790490f7 || configure:18576: error: in || `/media/34GB/Arquivos-de-Programas-Linux-32bit/xorg/libXt-1.2.1': || configure:18578: error: cannot run test program while cross compiling || See `config.log' for more details | | The above four lines were taken from config.log. | | My configure command it is: | || CFLAGS=-m32 ./configure || --prefix=/media/34GB/Arquivos-de-Programas-Linux-32bit/xorg/Xt-1.2.1 || --host=i386-gnu-linux | | PKG_CONFIG_PATH=/media/34GB/Arquivos-de-Programas-Linux-32bit/xorg/X11-1.4.4/lib/pkgconfig/:/media/34GB/Arquivos-de-Programas-Linux/xorg/Xorgproto-2018.1/share/pkgconfig/:/media/34GB/Arquivos-de-Programas-Linux-32bit/xorg/Xcb-1.7/lib/pkgconfig/:/media/34GB/Arquivos-de-Programas-Linux/xorg/Pthread-stubs-0.1/lib/pkgconfig/:/media/34GB/Arquivos-de-Programas-Linux-32bit/xorg/Xau-1.0.0/lib/pkgconfig/:/media/34GB/Arquivos-de-Programas-Linux-32bit/xorg/SM-1.0.0/lib/pkgconfig/:/media/34GB/Arquivos-de-Programas-Linux-32bit/xorg/ICE-1.0.0/lib/pkgconfig -- Thomas E. Dickey http://invisible-island.net ftp://ftp.invisible-island.net From dickey at his.com Mon May 16 00:24:58 2022 From: dickey at his.com (Thomas Dickey) Date: Sun, 15 May 2022 20:24:58 -0400 Subject: Malloc error when cross compiling libXt-1.2.1 In-Reply-To: <1234916815.6933952.1652657194763.JavaMail.zimbra@his.com> References: <105751652655531@mail.yandex.com> <1234916815.6933952.1652657194763.JavaMail.zimbra@his.com> Message-ID: <20220516002458.GA10500@prl-debianold-64.jexium-island.net> On Sun, May 15, 2022 at 07:26:34PM -0400, Thomas Dickey wrote: > ----- Original Message ----- > | From: "alexandre schenberg" > | To: xorg at lists.x.org > | Sent: Sunday, May 15, 2022 7:06:12 PM > | Subject: Malloc error when cross compiling libXt-1.2.1 > > | Hello. When I try to cross compile libXT 1.2.1 (or any version) for i386, I > | receive: > | > || configure:18569: checking whether malloc(0) returns NULL > > looks like > > https://gitlab.freedesktop.org/xorg/lib/libxt/-/blob/edd70bdfbbd16247e3d9564ca51d864f82626eb7/configure.ac > > XORG_CHECK_MALLOC_ZERO > > which comes from here: > > https://gitlab.freedesktop.org/xorg/util/macros/-/blob/master/xorg-macros.m4.in > https://gitlab.freedesktop.org/xorg/util/macros/-/blob/master/xorg-macros.m4.in#L1370 > > and as explained here > > https://www.gnu.org/software/autoconf/manual/autoconf-2.63/html_node/Runtime.html > > it's lacking a third choice on the end of the AC_RUN_IFELSE macro. > Overlooked here: > > https://gitlab.freedesktop.org/xorg/util/macros/-/commit/af0164c2ded2dcc95b72ca3b9bfbad9b790490f7 It's used in Alloc.c in Xt: https://gitlab.freedesktop.org/xorg/lib/libxt/-/blob/edd70bdfbbd16247e3d9564ca51d864f82626eb7/src/Alloc.c#L167 which notwithstanding the comment, the C standard doesn't offer much help: https://stackoverflow.com/questions/2132273/what-does-malloc0-return ...so the safest thing to do with the macro would be to supply a warning and define MALLOC_0_RETURNS_NULL -- Thomas E. Dickey https://invisible-island.net ftp://ftp.invisible-island.net -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 659 bytes Desc: not available URL: From joachim.torbicki at yahoo.de Wed May 18 08:25:13 2022 From: joachim.torbicki at yahoo.de (Joachim Torbicki) Date: Wed, 18 May 2022 08:25:13 +0000 (UTC) Subject: Error (EE) no screens found(EE) References: <122080358.7592425.1652862314147.ref@mail.yahoo.com> Message-ID: <122080358.7592425.1652862314147@mail.yahoo.com> Hello, after update with my opensuse tumbleweed i have an error when starting kde.It fails with a X11 error "no screens found(EE) ". - > see Xorg.1.log Informationen zu Schema x11: ---------------------------- Repository??????????????? : Haupt-Repository (OSS) Name????????????????????? : x11 Version?????????????????? : 20200505-32.2 Arch????????????????????? : x86_64 Anbieter????????????????? : openSUSE When trying Xorg -configure i get the error on the screenshot. Kind regards Joachim -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: lspci.txt URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Xorg.1.log Type: application/octet-stream Size: 6162 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Xorg-configure.jpg Type: image/jpeg Size: 1655097 bytes Desc: not available URL: From mrmazda at earthlink.net Wed May 18 09:01:48 2022 From: mrmazda at earthlink.net (Felix Miata) Date: Wed, 18 May 2022 05:01:48 -0400 Subject: Error (EE) no screens found(EE) In-Reply-To: <122080358.7592425.1652862314147@mail.yahoo.com> References: <122080358.7592425.1652862314147.ref@mail.yahoo.com> <122080358.7592425.1652862314147@mail.yahoo.com> Message-ID: <1227a2f3-a799-7082-7cd9-8638411d954b@earthlink.net> Joachim Torbicki composed on 2022-05-18 08:25 (UTC): > after update with my opensuse tumbleweed i have an error when starting kde.It fails with a X11 error "no screens found(EE) ". - > see Xorg.1.log > Informationen zu Schema x11: > ---------------------------- > Repository??????????????? : Haupt-Repository (OSS) > Name????????????????????? : x11 > Version?????????????????? : 20200505-32.2 > Arch????????????????????? : x86_64 > Anbieter????????????????? : openSUSE > When trying Xorg -configure i get the error on the screenshot. Xorg -configure is a waste of time that rarely works for graphics issues. openSUSE, like most current distros, should work just fine automatically, with no /etc/X11/xorg.conf file, and no configuration files in /etc/X11/xorg.conf.d/ affecting graphics. Make sure xf86-video-amdgpu, kernel-firmware-amdgpu and libdrm_amdgpu1 are all installed, and try again with no xorg.conf file. If it doesn't work, watch for the next TW release, then upgrade right away. I saw mention of an X bug with AMD, but don't know any details except that the bug was found right at release and the fix is in the pipe to whichever release follows 20220516. I may have the same problem, and have been trying to find the package at fault. I think it may be kernel-firmware-amdgpu. If this is it, you should be able to simply use a previous kernel whose initrd was not rebuilt with the current kernel-firmware-amdgpu version. -- Evolution as taught in public schools is, like religion, based on faith, not based on science. Team OS/2 ** Reg. Linux User #211409 ** a11y rocks! Felix Miata From sndirsch at suse.de Wed May 18 10:32:45 2022 From: sndirsch at suse.de (Stefan Dirsch) Date: Wed, 18 May 2022 12:32:45 +0200 Subject: Error (EE) no screens found(EE) In-Reply-To: <122080358.7592425.1652862314147@mail.yahoo.com> References: <122080358.7592425.1652862314147.ref@mail.yahoo.com> <122080358.7592425.1652862314147@mail.yahoo.com> Message-ID: <20220518103244.GA6020@suse.de> On Wed, May 18, 2022 at 08:25:13AM +0000, Joachim Torbicki wrote: > Hello, > > after update with my opensuse tumbleweed i have an error when starting kde. > It fails with a X11 error "no screens found(EE) ". - > see Xorg.1.log [ 1528.415] (II) Loading /usr/lib64/xorg/modules/drivers/radeon_drv.so [ 1528.416] (EE) Failed to load /usr/lib64/xorg/modules/drivers/radeon_drv.so: /usr/lib64/xorg/modules/drivers/radeon_drv.so: undefined symbol: exaWaitSync [ 1528.416] (EE) Failed to load module "radeon" (loader failed, 0) This is the "-z now" compile issue with Xserver modules in general. It's already fixed for the next Tumbleweed update. For the time being you can also update the RPM manually https://build.opensuse.org/package/show/X11:XOrg/xf86-video-ati or uninstall xf86-video-ati package (switching to modeset/modesetting X driver). Thanks, Stefan Public Key available ------------------------------------------------------ Stefan Dirsch (Res. & Dev.) SUSE Software Solutions Germany GmbH Tel: 0911-740 53 0 Maxfeldstra?e 5 FAX: 0911-740 53 479 D-90409 N?rnberg http://www.suse.de Germany ---------------------------------------------------------------- (HRB 36809, AG N?rnberg) Gesch?ftsf?hrer: Ivo Totev ---------------------------------------------------------------- From ale.schenberg at yandex.com Thu May 19 00:02:47 2022 From: ale.schenberg at yandex.com (alexandre schenberg) Date: Wed, 18 May 2022 21:02:47 -0300 Subject: Malloc error when cross compiling libXt-1.2.1 In-Reply-To: <20220516002458.GA10500@prl-debianold-64.jexium-island.net> References: <105751652655531@mail.yandex.com> <1234916815.6933952.1652657194763.JavaMail.zimbra@his.com> <20220516002458.GA10500@prl-debianold-64.jexium-island.net> Message-ID: <778851652918463@mail.yandex.com> An HTML attachment was scrubbed... URL: From dickey at his.com Thu May 19 00:32:26 2022 From: dickey at his.com (Thomas Dickey) Date: Wed, 18 May 2022 20:32:26 -0400 Subject: Malloc error when cross compiling libXt-1.2.1 In-Reply-To: <778851652918463@mail.yandex.com> References: <105751652655531@mail.yandex.com> <1234916815.6933952.1652657194763.JavaMail.zimbra@his.com> <20220516002458.GA10500@prl-debianold-64.jexium-island.net> <778851652918463@mail.yandex.com> Message-ID: <20220519003226.GA13156@prl-debianold-64.jexium-island.net> On Wed, May 18, 2022 at 09:02:47PM -0300, alexandre schenberg wrote: > Could you explain me how to define it (and where)? diff --git a/xorg-macros.m4.in b/xorg-macros.m4.in index 8d57724..7e16915 100644 --- a/xorg-macros.m4.in +++ b/xorg-macros.m4.in @@ -1395,7 +1395,9 @@ AC_CACHE_VAL([xorg_cv_malloc0_returns_null], exit((m0 == 0 || r0 == 0 || c0 == 0) ? 0 : 1); ])], [xorg_cv_malloc0_returns_null=yes], - [xorg_cv_malloc0_returns_null=no])]) + [xorg_cv_malloc0_returns_null=no], + [xorg_cv_malloc0_returns_null=yes + AC_MSG_WARN([assuming malloc(0) returns null])])]) MALLOC_ZERO_RETURNS_NULL=$xorg_cv_malloc0_returns_null fi AC_MSG_RESULT([$MALLOC_ZERO_RETURNS_NULL]) -- Thomas E. Dickey https://invisible-island.net ftp://ftp.invisible-island.net -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 659 bytes Desc: not available URL: From stefan.hoffmeister at gmail.com Fri May 20 10:33:34 2022 From: stefan.hoffmeister at gmail.com (Stefan Hoffmeister) Date: Fri, 20 May 2022 12:33:34 +0200 Subject: Massive CPU load on idle X - PRIME configuration Message-ID: I am looking for the right place to ask about debugging a specific configuration * Intel modesetting driver * nvidia closed source drivers * PRIME configuration * a specific 4K screen attached to DisplayPort (no issue with a 2.5K screen) I suspect this to be an Intel modesetting problem - it allocates by far too much memory, and it seems to continuously copy content even if there were no changes, resulting in heaps of memory bandwidth consumption and heaps of burning of CPU. Alas, I am not at all familiar with the underlying software stack, so any pointers into the right direction would be greatly appreciated. From ofourdan at redhat.com Wed May 25 09:16:12 2022 From: ofourdan at redhat.com (Olivier Fourdan) Date: Wed, 25 May 2022 11:16:12 +0200 Subject: [ANNOUNCE] xwayland 22.1.2 Message-ID: <77ec54da-a600-7843-506d-5f4ac9aa9ae5@redhat.com> Olivier Fourdan (3): randr: Add "RANDR Emulation" property xwayland/output: Set the "RANDR Emulation" property Bump version to 22.1.2 Weng Xuetian (1): xwayland: Fix invalid pointer access in drm_lease_device_handle_released. git tag: xwayland-22.1.2 https://xorg.freedesktop.org/archive/individual/xserver/xwayland-22.1.2.tar.xz SHA256: 743c4d56cfc0818755e2281d625d51860b41a473c641e179649a4f41776d1fca xwayland-22.1.2.tar.xz SHA512: c8620169f16c2bbd592dbe77bc1f7a2c27a78f49a89bf966d8a449b7faacd69f5ea4aac7adb5b75e06dcc5efca26a2141c9b5d4cf6a592ec7882bad5e235bce4 xwayland-22.1.2.tar.xz PGP: https://xorg.freedesktop.org/archive/individual/xserver/xwayland-22.1.2.tar.xz.sig From ofourdan at redhat.com Wed May 25 09:19:22 2022 From: ofourdan at redhat.com (Olivier Fourdan) Date: Wed, 25 May 2022 11:19:22 +0200 Subject: [ANNOUNCE] xwayland 22.1.2 Message-ID: (Resending because I forgot to sign the message) Olivier Fourdan (3): randr: Add "RANDR Emulation" property xwayland/output: Set the "RANDR Emulation" property Bump version to 22.1.2 Weng Xuetian (1): xwayland: Fix invalid pointer access in drm_lease_device_handle_released. git tag: xwayland-22.1.2 https://xorg.freedesktop.org/archive/individual/xserver/xwayland-22.1.2.tar.xz SHA256: 743c4d56cfc0818755e2281d625d51860b41a473c641e179649a4f41776d1fca xwayland-22.1.2.tar.xz SHA512: c8620169f16c2bbd592dbe77bc1f7a2c27a78f49a89bf966d8a449b7faacd69f5ea4aac7adb5b75e06dcc5efca26a2141c9b5d4cf6a592ec7882bad5e235bce4 xwayland-22.1.2.tar.xz PGP: https://xorg.freedesktop.org/archive/individual/xserver/xwayland-22.1.2.tar.xz.sig -------------- next part -------------- A non-text attachment was scrubbed... Name: OpenPGP_0x14706DBE1E4B4540.asc Type: application/pgp-keys Size: 3183 bytes Desc: OpenPGP public key URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: OpenPGP_signature Type: application/pgp-signature Size: 203 bytes Desc: OpenPGP digital signature URL: From lucas at seninha.org Fri May 27 12:46:50 2022 From: lucas at seninha.org (Lucas de Sena) Date: Fri, 27 May 2022 09:46:50 -0300 Subject: How does libXt do resource type comparison? Message-ID: Hi, I'm using libXt to write some widgets, and I'm using Xt's resource management system to convert string X resources to XftFont objects, by setting converters and destructor functions with the XtSetTypeConverter(3) routine. It seems that Xt can cache converted objects so it does not have to do the same conversion again and again. However, I'm not sure how the resource management system knows whether two conversions from the same from_type to the same to_type have the same value in order to cache the results. For example, I have set a converter from String to XftFont for me to draw text using Xft. How can Xt tells whether a second conversion from the same String to XftFont as a previous conversion has to be cached? Can I set a comparison function? From yegor96 at outlook.com Sat May 28 15:01:46 2022 From: yegor96 at outlook.com (yegor96 kad) Date: Sat, 28 May 2022 15:01:46 +0000 Subject: Kali Linux on Asus laptop going to black screen. StartX not working Message-ID: Kali Linux on Asus laptop going to black screen. StartX not working. Don?t know any fix for this. [image0.jpeg] -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image0.jpeg Type: image/jpeg Size: 4247790 bytes Desc: image0.jpeg URL: From csoren at cpinternet.com Mon May 30 20:31:29 2022 From: csoren at cpinternet.com (Chris Sorenson) Date: Mon, 30 May 2022 16:31:29 -0400 Subject: How does libXt do resource type comparison? In-Reply-To: References: Message-ID: <1653942689.q1qqc6hpko4sk0wg@webmail.mycci.net> > > Today's Topics: > > 1. How does libXt do resource type comparison? (Lucas de Sena) > > ---------------------------------------------------------------------- > > Message: 1 > Date: Fri, 27 May 2022 09:46:50 -0300 > From: Lucas de Sena > To: xorg at lists.x.org > Subject: How does libXt do resource type comparison? > Message-ID: > Content-Type: text/plain; charset=us-ascii > > Hi, > > I'm using libXt to write some widgets, and I'm using Xt's resource > management system to convert string X resources to XftFont objects, > by setting converters and destructor functions with the > XtSetTypeConverter(3) routine. > > It seems that Xt can cache converted objects so it does not have to do > the same conversion again and again. > > However, I'm not sure how the resource management system knows whether > two conversions from the same from_type to the same to_type have the > same value in order to cache the results. > > For example, I have set a converter from String to XftFont for me to > draw text using Xft. How can Xt tells whether a second conversion from > the same String to XftFont as a previous conversion has to be cached? > Can I set a comparison function? > Might make more sense to ask this question on the fontconfig mailing list, I'm pretty sure KeithP still reads that list: lists.freedesktop.org/mailman/listinfo/fontconfig From dickey at his.com Mon May 30 22:54:35 2022 From: dickey at his.com (Thomas Dickey) Date: Mon, 30 May 2022 18:54:35 -0400 Subject: How does libXt do resource type comparison? In-Reply-To: <1653942689.q1qqc6hpko4sk0wg@webmail.mycci.net> References: <1653942689.q1qqc6hpko4sk0wg@webmail.mycci.net> Message-ID: <20220530225435.GA31511@prl-debianold-64.jexium-island.net> On Mon, May 30, 2022 at 04:31:29PM -0400, Chris Sorenson wrote: > > > > > Today's Topics: > > > > 1. How does libXt do resource type comparison? (Lucas de Sena) > > > > ---------------------------------------------------------------------- > > > > Message: 1 > > Date: Fri, 27 May 2022 09:46:50 -0300 > > From: Lucas de Sena > > To: xorg at lists.x.org > > Subject: How does libXt do resource type comparison? > > Message-ID: > > Content-Type: text/plain; charset=us-ascii > > > > Hi, > > > > I'm using libXt to write some widgets, and I'm using Xt's resource > > management system to convert string X resources to XftFont objects, > > by setting converters and destructor functions with the > > XtSetTypeConverter(3) routine. > > > > It seems that Xt can cache converted objects so it does not have to do > > the same conversion again and again. > > > > However, I'm not sure how the resource management system knows whether > > two conversions from the same from_type to the same to_type have the > > same value in order to cache the results. > > > > For example, I have set a converter from String to XftFont for me to > > draw text using Xft. How can Xt tells whether a second conversion from > > the same String to XftFont as a previous conversion has to be cached? > > Can I set a comparison function? > > > > Might make more sense to ask this question on the fontconfig mailing list, I'm pretty sure KeithP still reads that list: > > lists.freedesktop.org/mailman/listinfo/fontconfig maybe not: fontconfig doesn't use Xt. One could read the source code to understand it. I think XtDirectConvert is what Lucas is asking about: https://gitlab.freedesktop.org/xorg/lib/libxt/-/blob/master/src/Convert.c#L644 This would be helpful as well (Xt uses Quarks for resource strings): https://tronche.com/gui/x/xlib/resource-manager/quarks.html https://tronche.com/gui/x/xlib/resource-manager/XrmStringToQuark.html -- Thomas E. Dickey https://invisible-island.net ftp://ftp.invisible-island.net -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 659 bytes Desc: not available URL: