xorg issueshttps://gitlab.freedesktop.org/groups/xorg/-/issues2023-02-14T14:51:28Zhttps://gitlab.freedesktop.org/xorg/lib/libxcb/-/issues/66xcb_damage_create requires application to call xcb_damage_query_version() first2023-02-14T14:51:28ZTwaik Yontxcb_damage_create requires application to call xcb_damage_query_version() first<details>
<summary>Code</summary>
```
#include <cstdio>
#include <X11/Xlib-xcb.h>
#include <X11/extensions/Xdamage.h>
#include <xcb/xcb.h>
#include <xcb/damage.h>
#define XCB 1
int main (int argc, char **argv) {
Display* dpy = XOpen...<details>
<summary>Code</summary>
```
#include <cstdio>
#include <X11/Xlib-xcb.h>
#include <X11/extensions/Xdamage.h>
#include <xcb/xcb.h>
#include <xcb/damage.h>
#define XCB 1
int main (int argc, char **argv) {
Display* dpy = XOpenDisplay(nullptr);
#if !XCB
XDamageCreate(dpy, RootWindow(dpy, 0), XDamageReportRawRectangles);
#else
xcb_connection_t* conn = XGetXCBConnection(dpy);
xcb_request_check(conn, xcb_damage_create_checked(conn, xcb_generate_id(conn),
xcb_setup_roots_iterator(xcb_get_setup(conn)).data->root, XCB_DAMAGE_REPORT_LEVEL_RAW_RECTANGLES));
#endif
while(true) {
#if XCB
xcb_wait_for_event(conn);
#else
XEvent e;
XNextEvent(dpy, &e);
#endif
printf("damage\n");
}
return 1;
}
```
</details>
I realize that my code is ugly. But when I switch XCB definition to 0 everything works as expected.
I am not the only one who noticed that: [1](https://chromium.googlesource.com/chromiumos/platform/window_manager/+/0.12.369.B/x11/real_x_connection.cc#1248), [2](https://github.com/lumina-desktop/lumina/blob/86d0e6fc20c44f29d7b3eb41a6efdab05f262bca/src-qt5/core/libLumina/LuminaX11.cpp#L943).
Thank you.https://gitlab.freedesktop.org/xorg/driver/xf86-input-libinput/-/issues/55Trackpoint moves on its own2023-02-28T20:56:04ZYevgeny KosarzhevskyTrackpoint moves on its ownI have the issue on ThinkPad's (P14s AMD G1, X1 G10).
Trackpoint moves on it's own frequently.
Removing xserver-xorg-input-libinput and installing xserver-xorg-input-evdev fixes the issue.
xinput reports the devices as 'TPPS/2 Elan Trac...I have the issue on ThinkPad's (P14s AMD G1, X1 G10).
Trackpoint moves on it's own frequently.
Removing xserver-xorg-input-libinput and installing xserver-xorg-input-evdev fixes the issue.
xinput reports the devices as 'TPPS/2 Elan TrackPoint'https://gitlab.freedesktop.org/xorg/xserver/-/issues/1435Follow-up from "xwayland: Commit surface changes with libdecor configure"2023-08-17T06:54:18ZOlivier FourdanFollow-up from "xwayland: Commit surface changes with libdecor configure"The following discussion from !1053 should be addressed:
- [x] @jadahl started a [discussion](https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1053#note_1748812): (+2 comments)
> The `configure` callback is roughly equ...The following discussion from !1053 should be addressed:
- [x] @jadahl started a [discussion](https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1053#note_1748812): (+2 comments)
> The `configure` callback is roughly equivalent to `xdg_toplevel_configure`, meaning the state one should commit is according to the configuration. This likely means dealing with resizing and redrawing, but that doesn't seem to happen here.https://gitlab.freedesktop.org/xorg/lib/libx11/-/issues/1831.8.3: missing `XInitThreads` symbol on linking gthumb (master)2023-05-17T21:12:22ZTomasz Kłoczko1.8.3: missing `XInitThreads` symbol on linking gthumb (master)Just started testing some updates from master of the `gthumb` (https://gitlab.gnome.org/GNOME/gthumb/) and found that on on linking it fails with message about missing
<details>
```console
[tkloczko@pers-jacek x86_64-redhat-linux-gnu]$...Just started testing some updates from master of the `gthumb` (https://gitlab.gnome.org/GNOME/gthumb/) and found that on on linking it fails with message about missing
<details>
```console
[tkloczko@pers-jacek x86_64-redhat-linux-gnu]$ ninja
[1/1] Linking target gthumb/gthumb
FAILED: gthumb/gthumb
/usr/bin/gcc -o gthumb/gthumb gthumb/gthumb.p/meson-generated_.._gth-marshal.c.o gthumb/gthumb.p/meson-generated_.._gth-enum-types.c.o gthumb/gthumb.p/meson-generated_.._gth-resources.c.o gthumb/gthumb.p/cairo-scale.c.o gthumb/gthumb.p/cairo-utils.c.o gthumb/gthumb.p/color-utils.c.o gthumb/gthumb.p/dlg-favorite-properties.c.o gthumb/gthumb.p/dlg-location.c.o gthumb/gthumb.p/dlg-personalize-filters.c.o gthumb/gthumb.p/dlg-preferences.c.o gthumb/gthumb.p/dlg-preferences-browser.c.o gthumb/gthumb.p/dlg-preferences-extensions.c.o gthumb/gthumb.p/dlg-preferences-general.c.o gthumb/gthumb.p/dlg-preferences-shortcuts.c.o gthumb/gthumb.p/dlg-sort-order.c.o gthumb/gthumb.p/dom.c.o gthumb/gthumb.p/gimp-op.c.o gthumb/gthumb.p/gio-utils.c.o gthumb/gthumb.p/glib-utils.c.o gthumb/gthumb.p/gsignature.c.o gthumb/gthumb.p/gth-accel-button.c.o gthumb/gthumb.p/gth-accel-dialog.c.o gthumb/gthumb.p/gth-application.c.o gthumb/gthumb.p/gth-auto-paned.c.o gthumb/gthumb.p/gth-async-task.c.o gthumb/gthumb.p/gth-browser.c.o gthumb/gthumb.p/gth-browser-actions-callbacks.c.o gthumb/gthumb.p/gth-buffer-data.c.o gthumb/gthumb.p/gth-color-manager.c.o gthumb/gthumb.p/gth-color-scale.c.o gthumb/gthumb.p/gth-delete-task.c.o gthumb/gthumb.p/gth-duplicable.c.o gthumb/gthumb.p/gth-empty-list.c.o gthumb/gthumb.p/gth-error.c.o gthumb/gthumb.p/gth-extensions.c.o gthumb/gthumb.p/gth-file-chooser-dialog.c.o gthumb/gthumb.p/gth-file-comment.c.o gthumb/gthumb.p/gth-file-data.c.o gthumb/gthumb.p/gth-file-details.c.o gthumb/gthumb.p/gth-file-list.c.o gthumb/gthumb.p/gth-file-properties.c.o gthumb/gthumb.p/gth-file-selection.c.o gthumb/gthumb.p/gth-file-selection-info.c.o gthumb/gthumb.p/gth-file-source.c.o gthumb/gthumb.p/gth-file-source-vfs.c.o gthumb/gthumb.p/gth-file-store.c.o gthumb/gthumb.p/gth-file-tool.c.o gthumb/gthumb.p/gth-file-view.c.o gthumb/gthumb.p/gth-filter.c.o gthumb/gthumb.p/gth-filterbar.c.o gthumb/gthumb.p/gth-filter-editor-dialog.c.o gthumb/gthumb.p/gth-filter-file.c.o gthumb/gthumb.p/gth-filter-grid.c.o gthumb/gthumb.p/gth-folder-tree.c.o gthumb/gthumb.p/gth-grid-view.c.o gthumb/gthumb.p/gth-histogram.c.o gthumb/gthumb.p/gth-histogram-view.c.o gthumb/gthumb.p/gth-hook.c.o gthumb/gthumb.p/gth-icc-profile.c.o gthumb/gthumb.p/gth-icon-cache.c.o gthumb/gthumb.p/gth-image.c.o gthumb/gthumb.p/gth-image-dragger.c.o gthumb/gthumb.p/gth-image-history.c.o gthumb/gthumb.p/gth-image-list-task.c.o gthumb/gthumb.p/gth-image-loader.c.o gthumb/gthumb.p/gth-image-navigator.c.o gthumb/gthumb.p/gth-image-overview.c.o gthumb/gthumb.p/gth-image-preloader.c.o gthumb/gthumb.p/gth-image-saver.c.o gthumb/gthumb.p/gth-image-selector.c.o gthumb/gthumb.p/gth-image-task.c.o gthumb/gthumb.p/gth-image-task-chain.c.o gthumb/gthumb.p/gth-image-utils.c.o gthumb/gthumb.p/gth-image-viewer.c.o gthumb/gthumb.p/gth-image-viewer-tool.c.o gthumb/gthumb.p/gth-info-bar.c.o gthumb/gthumb.p/gth-load-file-data-task.c.o gthumb/gthumb.p/gth-location-bar.c.o gthumb/gthumb.p/gth-location-chooser.c.o gthumb/gthumb.p/gth-location-chooser-dialog.c.o gthumb/gthumb.p/gth-main.c.o gthumb/gthumb.p/gth-main-default-hooks.c.o gthumb/gthumb.p/gth-main-default-metadata.c.o gthumb/gthumb.p/gth-main-default-sort-types.c.o gthumb/gthumb.p/gth-main-default-tests.c.o gthumb/gthumb.p/gth-main-default-types.c.o gthumb/gthumb.p/gth-menu-manager.c.o gthumb/gthumb.p/gth-metadata.c.o gthumb/gthumb.p/gth-metadata-chooser.c.o gthumb/gthumb.p/gth-metadata-provider.c.o gthumb/gthumb.p/gth-metadata-provider-file.c.o gthumb/gthumb.p/gth-monitor.c.o gthumb/gthumb.p/gth-overwrite-dialog.c.o gthumb/gthumb.p/gth-paned.c.o gthumb/gthumb.p/gth-preferences.c.o gthumb/gthumb.p/gth-progress-dialog.c.o gthumb/gthumb.p/gth-property-view.c.o gthumb/gthumb.p/gth-request-dialog.c.o gthumb/gthumb.p/gth-save-file-data-task.c.o gthumb/gthumb.p/gth-save-image-task.c.o gthumb/gthumb.p/gth-screensaver.c.o gthumb/gthumb.p/gth-shortcut.c.o gthumb/gthumb.p/gth-shortcuts-window.c.o gthumb/gthumb.p/gth-sidebar.c.o gthumb/gthumb.p/gth-sidebar-section.c.o gthumb/gthumb.p/gth-statusbar.c.o gthumb/gthumb.p/gth-string-list.c.o gthumb/gthumb.p/gth-tags-entry.c.o gthumb/gthumb.p/gth-tags-file.c.o gthumb/gthumb.p/gth-template-editor-dialog.c.o gthumb/gthumb.p/gth-template-selector.c.o gthumb/gthumb.p/gth-task.c.o gthumb/gthumb.p/gth-test.c.o gthumb/gthumb.p/gth-test-aspect-ratio.c.o gthumb/gthumb.p/gth-test-category.c.o gthumb/gthumb.p/gth-test-chain.c.o gthumb/gthumb.p/gth-test-selector.c.o gthumb/gthumb.p/gth-test-simple.c.o gthumb/gthumb.p/gth-thumb-loader.c.o gthumb/gthumb.p/gth-time.c.o gthumb/gthumb.p/gth-time-selector.c.o gthumb/gthumb.p/gth-toolbox.c.o gthumb/gthumb.p/gth-trash-task.c.o gthumb/gthumb.p/gth-uri-list.c.o gthumb/gthumb.p/gth-user-dir.c.o gthumb/gthumb.p/gth-vfs-tree.c.o gthumb/gthumb.p/gth-viewer-page.c.o gthumb/gthumb.p/gth-window.c.o gthumb/gthumb.p/gth-window-title.c.o gthumb/gthumb.p/gtk-utils.c.o gthumb/gthumb.p/gvaluehash.c.o gthumb/gthumb.p/main.c.o gthumb/gthumb.p/main-migrate-catalogs.c.o gthumb/gthumb.p/pixbuf-cache.c.o gthumb/gthumb.p/pixbuf-io.c.o gthumb/gthumb.p/pixbuf-utils.c.o gthumb/gthumb.p/str-utils.c.o gthumb/gthumb.p/uri-utils.c.o gthumb/gthumb.p/zlib-utils.c.o gthumb/gthumb.p/gnome-desktop-thumbnail.c.o gthumb/gthumb.p/gnome-thumbnail-pixbuf-utils.c.o -Wl,--as-needed -Wl,--no-undefined -Wl,-export-dynamic -Wl,--as-needed -Wl,--gc-sections -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -flto=auto -flto-partition=none -fuse-linker-plugin -Wl,--build-id=sha1 -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -Wl,--start-group -lm -pthread /usr/lib64/libglib-2.0.so /usr/lib64/libgthread-2.0.so -Wl,--export-dynamic /usr/lib64/libgmodule-2.0.so /usr/lib64/libgobject-2.0.so /usr/lib64/libgio-2.0.so /usr/lib64/libgtk-3.so /usr/lib64/libgdk-3.so /usr/lib64/libz.so /usr/lib64/libpango-1.0.so /usr/lib64/libharfbuzz.so /usr/lib64/libpangocairo-1.0.so /usr/lib64/libcairo.so /usr/lib64/libgdk_pixbuf-2.0.so /usr/lib64/libcairo-gobject.so /usr/lib64/libatk-1.0.so /usr/lib64/libwayland-client.so /usr/lib64/libpng16.so -ljpeg /usr/lib64/libexiv2.so /usr/lib64/libgstreamer-1.0.so /usr/lib64/libgstvideo-1.0.so /usr/lib64/libgstbase-1.0.so /usr/lib64/liblcms2.so /usr/lib64/libcolord.so -ltiff /usr/lib64/libwebp.so /usr/lib64/libsharpyuv.so /usr/lib64/libraw.so /usr/lib64/librsvg-2.so /usr/lib64/libwebkit2gtk-4.0.so /usr/lib64/libsoup-2.4.so /usr/lib64/libjavascriptcoregtk-4.0.so /usr/lib64/libjson-glib-1.0.so /usr/lib64/libsecret-1.so /usr/lib64/libbrasero-burn3.so -Wl,--end-group
/usr/bin/ld: /tmp/cc1DOhqz.lto.o: undefined reference to symbol 'XInitThreads'
/usr/bin/ld: /usr/lib64/libX11.so.6: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
```
</details>
Checking libX11 source tree I see
<details>
```console
[tkloczko@pers-jacek libX11-1.8.3]$ grep -r XInitThreads
README.md: to call XInitThreads() from the library's constructor, thus enabling
src/globals.c: XInitThreads();
src/XlibInt.c:/* these pointers get initialized by XInitThreads */
src/XlibInt.c:/* NOTE: only called if !XTHREADS, or when XInitThreads wasn't called. */
src/locking.c:Status XInitThreads(void)
src/locking.c: "XInitThreads called, but no libthread in the calling program!\n" );
src/locking.c:Status XInitThreads(void)
src/config.h.in:/* Call XInitThreads() from the library constructor */
src/xcb_io.c: fprintf(stderr, "[xcb] You called XInitThreads, this is not your fault\n"); \
src/xcb_io.c: "and XInitThreads has not been called\n"); \
configure.ac: AC_DEFINE(USE_THREAD_SAFETY_CONSTRUCTOR,1,[Call XInitThreads() from the library constructor])
ChangeLog: the predicate callback. But that's not new, non-XInitThreads'd xlib
ChangeLog: global: call XInitThreads() from the library's constructor
ChangeLog: xcb: Clarify the XInitThreads error message
ChangeLog: XInitThreads has been called if _Xglobal_lock != NULL, we may as well
ChangeLog: It adds error messages offering advice (e.g. call XInitThreads() first)
ChangeLog: In the XTHREADS case, after you've called XInitThreads, we can hook
ChangeLog: In the !XTHREADS case, or if you haven't called XInitThreads, you don't
ChangeLog: for XID and sequence sync. Tested with and without XInitThreads(), and
ChangeLog: We acquire the lock even when XInitThreads was not called, so that pure
man/XLockDisplay.man:.so man__libmansuffix__/XInitThreads.__libmansuffix__
man/XUnlockDisplay.man:.so man__libmansuffix__/XInitThreads.__libmansuffix__
man/Makefile.in: XInitThreads.man \
man/Makefile.in: $(XInitThreads_shadows) \
man/Makefile.in:XInitThreads_shadows = \
man/Makefile.am: XInitThreads.man \
man/Makefile.am: $(XInitThreads_shadows) \
man/Makefile.am:XInitThreads_shadows = \
man/XInitThreads.man:.TH XInitThreads __libmansuffix__ __xorgversion__ "XLIB FUNCTIONS"
man/XInitThreads.man:XInitThreads, XLockDisplay, XUnlockDisplay \- multi-threading support
man/XInitThreads.man:Status XInitThreads\^(void);
man/XInitThreads.man:.B XInitThreads
man/XInitThreads.man:.BR XInitThreads .
man/XInitThreads.man:.BR XInitThreads .
man/XInitThreads.man:.BR XInitThreads .
specs/libX11/CH02.xml:<function>XInitThreads</function>.
specs/libX11/CH02.xml:<indexterm significance="preferred"><primary>XInitThreads</primary></indexterm>
specs/libX11/CH02.xml:<funcsynopsis id='XInitThreads'>
specs/libX11/CH02.xml: <funcdef>Status <function>XInitThreads</function></funcdef>
specs/libX11/CH02.xml:<function>XInitThreads</function>
specs/libX11/CH02.xml:<function>XInitThreads</function>.
specs/libX11/CH02.xml:<function>XInitThreads</function>.
include/X11/Xlib.h:extern Status XInitThreads(
```
</details>
I've checked as well my libX11.spec file where I have
```spec
%configure \
--disable-loadable-i18n \
--disable-static \
--enable-composecache \
--enable-ipv6 \
--enable-loadable-xcursor \
--enable-specs \
--enable-tcp-transport \
--enable-unix-transport \
--enable-xcms \
--enable-xf86bigfont \
--enable-xkb \
--enable-xlocale \
--enable-xlocaledir \
--enable-xthreads \
%{nil}
```
and in the build log I see
```console
libX11 1.8.3 will be built with the following settings:
Loadable i18n module support: no
Loadable xcursor library support: yes
Threading support: yes
Use Threads safe API: yes
Use thread safety constructor: yes
XCMS: yes
Internationalization support: yes
XF86BigFont support: yes
XKB support: yes
XLOCALEDIR environment variable support: yes
Compose table cache enabled: yes
Functional specs building enabled: yes
```
However tesing generated binary indeed I don't see that symbol
```
[tkloczko@pers-jacek .build_logs]$ objdump -x /usr/lib64/libX11.so.6 | grep XInitThreads
[tkloczko@pers-jacek .build_logs]$
```
<details>
```console
```
</details>https://gitlab.freedesktop.org/xorg/lib/libx11/-/issues/182sequence lost (0x20000 > 0x12320) in reply type 0xc!2023-03-06T11:18:20ZAlexander Jenischsequence lost (0x20000 > 0x12320) in reply type 0xc!Steam is spamming this when running from console. Rarely I see the following:
`Xlib: sequence lost (0x20000 > 0x106e3) in reply type 0x21!`
world/libx11 1.8.3-6 (from arch repos)Steam is spamming this when running from console. Rarely I see the following:
`Xlib: sequence lost (0x20000 > 0x106e3) in reply type 0x21!`
world/libx11 1.8.3-6 (from arch repos)https://gitlab.freedesktop.org/xorg/lib/libx11/-/issues/181It it possible to use XOpenDisplay with fd?2023-01-27T10:05:37ZTwaik YontIt it possible to use XOpenDisplay with fd?There is `XOpenDisplay` function which uses `xcb_connect` to connect X server and populate `Display`. But there is no function which uses `xcb_connect_to_fd` to do the same thing. Is there any workaround? In my case connecting sockets di...There is `XOpenDisplay` function which uses `xcb_connect` to connect X server and populate `Display`. But there is no function which uses `xcb_connect_to_fd` to do the same thing. Is there any workaround? In my case connecting sockets directly will not work because X server and my client programs must be present in different linux sandboxes but I can send/receive sockets using program outside sandbox.
Thank you.https://gitlab.freedesktop.org/xorg/app/xkbcomp/-/issues/22xkbcomp from git compile error2023-02-01T23:57:34ZV. Krishna Karthikxkbcomp from git compile errorI could able to compile all other components but xkbcomp the error is:
My gcc is
```
gcc -v
Using built-in specs.
COLLECT_GCC=/usr/bin/gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/8/lto-wrapper
OFFLOAD_TARGET_NAMES=nvpt...I could able to compile all other components but xkbcomp the error is:
My gcc is
```
gcc -v
Using built-in specs.
COLLECT_GCC=/usr/bin/gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/8/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-redhat-linux
Configured with: ../configure --enable-bootstrap --enable-languages=c,c++,fortran,lto --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-shared --enable-threads=posix --enable-checking=release --enable-multilib --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-gcc-major-version-only --with-linker-hash-style=gnu --enable-plugin --enable-initfini-array --with-isl --disable-libmpx --enable-offload-targets=nvptx-none --without-cuda-driver --enable-gnu-indirect-function --enable-cet --with-tune=generic --with-arch_32=x86-64 --build=x86_64-redhat-linux
Thread model: posix
gcc version 8.5.0 20210514 (Red Hat 8.5.0-3) (GCC)
```
--------error snip start------------------
```
make[2]: Entering directory '/LiMP/xorg/src/app/xkbcomp'
CC expr.o
expr.c: In function ‘ExprResolveString’:
expr.c:766:17: error: implicit declaration of function ‘asprintf’; did you mean ‘vsprintf’? [-Werror=implicit-function-declaration]
if (asprintf(&new, "%s%s", leftRtrn.str, rightRtrn.str) < 0)
^~~~~~~~
vsprintf
expr.c:766:17: warning: nested extern declaration of ‘asprintf’ [-Wnested-externs]
cc1: some warnings being treated as errors
make[2]: *** [Makefile:604: expr.o] Error 1
make[2]: Leaving directory '/LiMP/xorg/src/app/xkbcomp'
make[1]: *** [Makefile:648: all-recursive] Error 1
make[1]: Leaving directory '/LiMP/xorg/src/app/xkbcomp'
make: *** [Makefile:470: all] Error 2
build.sh: "make " failed on app/xkbcomp
build.sh: error processing: "app/xkbcomp"
```https://gitlab.freedesktop.org/xorg/lib/libx11/-/issues/180NLS: missing singleton compose sequences that take advantage of `ch`/`Ch`/`CH...2023-03-19T10:55:33Zjmcwilliams403NLS: missing singleton compose sequences that take advantage of `ch`/`Ch`/`CH`/`c_h`/`C_h`/`C_H` keysymsThe Breton keyboard still uses PUA characters to expand single keystrokes to "ch"/"Ch"/"CH"/"c’h"/"C’h"/"C’H" in a user-defined XCompose file. There are currently named keysyms for `ch`/`Ch`/`CH`/`c_h`/`C_h`/`C_H` which are as of yet unu...The Breton keyboard still uses PUA characters to expand single keystrokes to "ch"/"Ch"/"CH"/"c’h"/"C’h"/"C’H" in a user-defined XCompose file. There are currently named keysyms for `ch`/`Ch`/`CH`/`c_h`/`C_h`/`C_H` which are as of yet unused. I believe there ought to be some singleton key sequences in the standard Compose file which expand the named keysyms to the full strings so that the Breton keyboard can actually use the named keysyms and work out-of-the-box.https://gitlab.freedesktop.org/xorg/xserver/-/issues/1431xkbcomp from git compile error2023-01-26T16:49:56ZV. Krishna Karthikxkbcomp from git compile errorI could able to compile all other components but xkbcomp the error is:
My gcc is
```
gcc -v
Using built-in specs.
COLLECT_GCC=/usr/bin/gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/8/lto-wrapper
OFFLOAD_TARGET_NAMES=nvpt...I could able to compile all other components but xkbcomp the error is:
My gcc is
```
gcc -v
Using built-in specs.
COLLECT_GCC=/usr/bin/gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/8/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-redhat-linux
Configured with: ../configure --enable-bootstrap --enable-languages=c,c++,fortran,lto --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-shared --enable-threads=posix --enable-checking=release --enable-multilib --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-gcc-major-version-only --with-linker-hash-style=gnu --enable-plugin --enable-initfini-array --with-isl --disable-libmpx --enable-offload-targets=nvptx-none --without-cuda-driver --enable-gnu-indirect-function --enable-cet --with-tune=generic --with-arch_32=x86-64 --build=x86_64-redhat-linux
Thread model: posix
gcc version 8.5.0 20210514 (Red Hat 8.5.0-3) (GCC)
```
--------error snip start------------------
```
make[2]: Entering directory '/LiMP/xorg/src/app/xkbcomp'
CC expr.o
expr.c: In function ‘ExprResolveString’:
expr.c:766:17: error: implicit declaration of function ‘asprintf’; did you mean ‘vsprintf’? [-Werror=implicit-function-declaration]
if (asprintf(&new, "%s%s", leftRtrn.str, rightRtrn.str) < 0)
^~~~~~~~
vsprintf
expr.c:766:17: warning: nested extern declaration of ‘asprintf’ [-Wnested-externs]
cc1: some warnings being treated as errors
make[2]: *** [Makefile:604: expr.o] Error 1
make[2]: Leaving directory '/LiMP/xorg/src/app/xkbcomp'
make[1]: *** [Makefile:648: all-recursive] Error 1
make[1]: Leaving directory '/LiMP/xorg/src/app/xkbcomp'
make: *** [Makefile:470: all] Error 2
build.sh: "make " failed on app/xkbcomp
build.sh: error processing: "app/xkbcomp"
```https://gitlab.freedesktop.org/xorg/proto/xorgproto/-/issues/42No dead keysym counterpart for `Greek_accentdieresis`2023-03-23T16:14:30Zjmcwilliams403No dead keysym counterpart for `Greek_accentdieresis``Greek_accentdieresis` is the last keysym in the standard Compose file that still uses the spacing character as the entry point for dead key compositions. There really ought to be a named dead keysym at this point.`Greek_accentdieresis` is the last keysym in the standard Compose file that still uses the spacing character as the entry point for dead key compositions. There really ought to be a named dead keysym at this point.https://gitlab.freedesktop.org/xorg/driver/xf86-video-ati/-/issues/200[DELETED] Radeon 7870 (Tahiti) not working with radeon driver2023-01-24T12:54:50ZJim Laflin[DELETED] Radeon 7870 (Tahiti) not working with radeon driverThink this should have been raised on the Mesa project instead, moved to [here](https://gitlab.freedesktop.org/mesa/mesa/-/issues/8143)Think this should have been raised on the Mesa project instead, moved to [here](https://gitlab.freedesktop.org/mesa/mesa/-/issues/8143)https://gitlab.freedesktop.org/xorg/lib/libxpm/-/issues/4Problem with "compress" - can not compile libXpm, compress not found, set XPM...2023-02-05T20:19:29ZrubyFeedbackProblem with "compress" - can not compile libXpm, compress not found, set XPM_PATH_COMPRESS or use --disable-stat-zfilechecking for compress... no
configure: error: compress not found, set XPM_PATH_COMPRESS or use --disable-stat-zfile
^^^
Would it be possible to show a bit more information? Perhaps in the README or so.
Right now I do not know what "c...checking for compress... no
configure: error: compress not found, set XPM_PATH_COMPRESS or use --disable-stat-zfile
^^^
Would it be possible to show a bit more information? Perhaps in the README or so.
Right now I do not know what "compress" is. It is a binary I assume? To which
other program does it belong?
I'll use the --disable-stat-zfile flag for now, but perhaps compress is important
so I'd prefer libXpm to have that when I try to compile it. Thank you for reading.https://gitlab.freedesktop.org/xorg/xserver/-/issues/1426Plan for Xwayland 23.12023-03-23T08:21:39ZOlivier FourdanPlan for Xwayland 23.1It's that time of year already when we have to start to think about a new release of Xwayland.
There's been quite a few changes that already deserve a release, but there are also pending merge requests that we may want to consider befor...It's that time of year already when we have to start to think about a new release of Xwayland.
There's been quite a few changes that already deserve a release, but there are also pending merge requests that we may want to consider before a new yearly release.
The purpose of this is to list the things we *might* want to consider, it does not mean that everything listed here *must* be part of the new release though - we can decide to leave a pending merge request for later, and put a comment here on why we chose to do so.
Please note this is primarily intended to gather developer's feedback, it not meant as a poll for users to vote for their favorite fix/feature.
FWIW, I went quickly -i.e. I might have missed a few- through the list of MR for Xwayland and glamor and identified the following candidates:
- [x] [dix: switch scroll button emulation to multiples of increment](https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1059)
- [x] [present: Send a PresentConfigureNotify event for destroyed windows](https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1057)
- [x] [xwayland: Use {wl_,xdg-}output name for XRandR](https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1056)
- [x] [xwayland: fix GBM on driver without explicit modifiers](https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1054)
- [x] [glamor: Don't initialize on softpipe](https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1033)
- [ ] [xwayland: Support CHERI/Morello by not storing pointers in uint64_t](https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1008)
- [~] [Draft: Add EI support (based on @whot's branch)](https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/975)
- [ ] [Implement DRI3 v1.3 and per-surface dmabuf feedback](https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/969)
- [ ] [Use linux_dmabuf v4 when available to get the DRM device](https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/968)
- [~] [Explicit GPU Synchronization for DRI3, Present, and Xwayland](https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/967)
- [ ] [glamor: supports GLES3 shaders](https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/948)
- [ ] [xwayland: Detect gbm_bo_get_fd_for_plane at runtime](https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/946)
- [~] [glamor: Use render node for glamor device path where possible](https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/944)
- [ ] [xwayland: fix glamor es black windows](https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/934)
- [ ] [glamor: fix for 8bit fonts and PointSize on GLES 2](https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/924)
- [ ] [glamor cleanups](https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/920)
- [ ] [glamor: fix mirrored glyphs on big-endian machines](https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/919)
- [~] [glamor: add glamor EGL vendor](https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/914)
- [ ] [glamor: use glEGLImageTargetTexture2DOES during copy to update image texture](https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/898)
- [x] [Xwayland: Implement linux_dmabuf v4 feedback support](https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/818)
- [~] [Draft: xwayland: Multi DPI support via global factor rescaling [updated using properties]](https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/733)
- [ ] [glamor: Fix xRGB->ARGB composite in certain cases](https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/732)
- [ ] [xwayland: Implement wp_tearing_control_v1](https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/665)
- [ ] [glamor: Fix rendering of pixmap textures backed by EGLImageKHR image](https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/568)
- [~] [glamor: Require and use GL_ARB_sampler_objects](https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/506)
- [~] [glamor: Learn about GL_EXT_blend_func_extended](https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/505)
- [x] [XWayland high-resolution scroll wheel support](https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/118)
Xwayland hi-res scroll support support would be interesting, as it would fix an historical discrepancy between compositors that causes spurious scroll events with some compositors (such as sway or kwin). Also related, we have a regression in master currently that was [discovered when that change was backported in the stable branch](https://gitlab.freedesktop.org/xorg/xserver/-/issues/1392) and [reverted in the stable branch only](https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/988) - Should we also revert commit e37eeb7a in the master branch?
/cc @daenzer @whot @ajax @anholt
PS: I also created a milestone %"xwayland-23.1.0" for this purposexwayland-23.1.0https://gitlab.freedesktop.org/xorg/xserver/-/issues/1425X11 applications floods log by message "Maximum number of clients reached" af...2023-01-12T13:08:12ZMikhail GavrilovX11 applications floods log by message "Maximum number of clients reached" after upgrade GPU to 7900XTXX11 applications floods log by message "Maximum number of clients reached" after upgrade GPU to 7900XTX.
And sometimes just not starts.
```
❯ glxgears
Maximum number of clients reachedError: couldn't open display :0
❯ vkcube
Maximum n...X11 applications floods log by message "Maximum number of clients reached" after upgrade GPU to 7900XTX.
And sometimes just not starts.
```
❯ glxgears
Maximum number of clients reachedError: couldn't open display :0
❯ vkcube
Maximum number of clients reachedCannot connect to XCB.
Exiting ...
```
Before was 6900XT and I not observed such problem.
[lsof -U](/uploads/6be7b24c97f14596d456b3c415d8b440/lsof.txt)
[lsof -U](/uploads/c634a7cc24ca2cf8efcac72a37233947/lsof2.txt)
```
❯ rpm -q xorg-x11-server-Xwayland
xorg-x11-server-Xwayland-22.1.7-1.fc38.x86_64
❯ /usr/bin/Xwayland -version
The X.Org Foundation Xwayland Version 22.1.7 (12201007)
X Protocol Version 11, Revision 0
Build ID: xorg-x11-server-Xwayland 22.1.7-1.fc38
```
I use mesa builded from git master.
Сurrent commit is https://gitlab.freedesktop.org/mesa/mesa/-/commit/1b8bed38eb40c71a9973d6ea7c9294fa077bee7ahttps://gitlab.freedesktop.org/xorg/xserver/-/issues/1424Distorted old screen contents randomly appear and flicker when `xrandr --scal...2023-01-12T15:58:14ZSeongChan LeeDistorted old screen contents randomly appear and flicker when `xrandr --scale 1.5`Versions:
Ubuntu 22.10,
Gnome Shell 43.1 (X.Org mode),
xserver-xorg-video-amdgpu 22.0.0-3,
Sapphire Nitro+ RX 570 (4G)
Distorted old screen contents randomly appear and flicker when the fractional scaling enabled (150%).
It doesn't fli...Versions:
Ubuntu 22.10,
Gnome Shell 43.1 (X.Org mode),
xserver-xorg-video-amdgpu 22.0.0-3,
Sapphire Nitro+ RX 570 (4G)
Distorted old screen contents randomly appear and flicker when the fractional scaling enabled (150%).
It doesn't flicker without the fractional scaling (200%).
I know the fractional scaling is not upstream Gnome Shell's feature,
but it flickers too with manual `xrandr --scale 1.5`.
I think it started around Ubuntu 22.04.
I recently changed the GPU, and reinstalled Ubuntu, but it still happens.
I couldn't find relevant logs at the time in `journalctl`, or `Xorg.log`.
It only happens in Gnome Shell X.Org mode (on both Gnome Shell, Gnome Shell Classic)
I once suspected the mutter [triple buffering patch](https://sources.debian.org/patches/mutter/43.2-4/debian/Support-Dynamic-triple-double-buffering.patch/) from the Debian, so I built the mutter package without it, but it didn't work.https://gitlab.freedesktop.org/xorg/driver/xf86-video-amdgpu/-/issues/61Invisible mouse pointer under RDNA32023-02-26T10:48:02ZVasya SovariInvisible mouse pointer under RDNA3Issue encountered with CachyOS (Arch) running kernel 6.1 with Sapphire Nitro+ 7900XTX, Mesa 22 and Mesa-git 23
Mouse pointer is invisible. Consistent across various cursor themes. Issue is not present under Wayland
Can be resolved local...Issue encountered with CachyOS (Arch) running kernel 6.1 with Sapphire Nitro+ 7900XTX, Mesa 22 and Mesa-git 23
Mouse pointer is invisible. Consistent across various cursor themes. Issue is not present under Wayland
Can be resolved locally by creating
`/etc/X11/xorg.conf.d/99-modesetting.conf`
```
Section "Device"
Identifier "modesetting"
Driver "modesetting"
EndSection
```https://gitlab.freedesktop.org/xorg/lib/libx11/-/issues/178Invisible mouse pointer under RDNA32023-01-06T16:41:25ZVasya SovariInvisible mouse pointer under RDNA3Issue encountered with CachyOS (Arch) running kernel 6.1 with Sapphire Nitro+ 7900XTX, Mesa 22 and Mesa-git 23
Mouse pointer is invisible. Consistent across various cursor themes. Issue is not present under Wayland
Can be resolved local...Issue encountered with CachyOS (Arch) running kernel 6.1 with Sapphire Nitro+ 7900XTX, Mesa 22 and Mesa-git 23
Mouse pointer is invisible. Consistent across various cursor themes. Issue is not present under Wayland
Can be resolved locally by creating
`/etc/X11/xorg.conf.d/99-modesetting.conf`
```
Section "Device"
Identifier "modesetting"
Driver "modesetting"
EndSection
```https://gitlab.freedesktop.org/xorg/app/xinput/-/issues/13xinput: program to grab keys and react to hierarchy changes2023-01-02T23:38:21ZNicolas Georgexinput: program to grab keys and react to hierarchy changesHi. I have just released a small program that I wrote for myself to do two things:
- Grab a key and execute a command on press, like the keyboard shortcuts of many window managers only on a specific keyboard.
- Wait for hierarchy chang...Hi. I have just released a small program that I wrote for myself to do two things:
- Grab a key and execute a command on press, like the keyboard shortcuts of many window managers only on a specific keyboard.
- Wait for hierarchy changes and execute a command, for example to apply a speed option to a hot-plugged mouse.
I believe these features would be useful in the standard tools. Would you like me to implement them in the `xinput` command itself?
<https://gitlab.com/Cigaes/xi2bind>https://gitlab.freedesktop.org/xorg/lib/libxft/-/issues/18Problems with rotated text (monospace font only) - starting with version 2.3.52023-01-19T08:54:17ZStefan I.Problems with rotated text (monospace font only) - starting with version 2.3.5I think I discovered an interesting bug connected to rotated text with libxft version >= 2.3.5. It appears only when monospace fonts are used.
Symptoms (see also the attached demo program [xft-example.c](/uploads/a155d1a6126289cce348cf8...I think I discovered an interesting bug connected to rotated text with libxft version >= 2.3.5. It appears only when monospace fonts are used.
Symptoms (see also the attached demo program [xft-example.c](/uploads/a155d1a6126289cce348cf8957aa82a0/xft-example.c)):
A Rotated text string will not be printed with the requested angle (while the individual characters seem to be rotated correctly). In the example the text should be rotated by +30 degrees (vs the horizontal axis). In fact it points downwards by -30 degrees.
The problem does not appear under Ubuntu 22.04 (using libXft version 2.3.4), but it shows up on other Linux systems with newer version of libXft (and even on FreeBSD 13.1). In addition I compiled newer versions of libXft (up to 2.3.7) under Ubuntu 22.04 and used them with the demo program - all of them show the same problem.Thomas E. DickeyThomas E. Dickeyhttps://gitlab.freedesktop.org/xorg/lib/libx11/-/issues/177Xwayland screen resolution issues2023-01-07T11:38:14ZBruno do NascimentoXwayland screen resolution issuesI don't know if I'm in the right place, however I'm having a problem with Xwayland....
It doesn't detect my native resolution (1360x768)
So I can't use that resolution in games
The only resolution that is detected is 1366x768
Can anyone ...I don't know if I'm in the right place, however I'm having a problem with Xwayland....
It doesn't detect my native resolution (1360x768)
So I can't use that resolution in games
The only resolution that is detected is 1366x768
Can anyone help me with this?
```
➜ ~ xrandr
Screen 0: minimum 16 x 16, current 1360 x 768, maximum 32767 x 32767
XWAYLAND0 connected primary 1366x768+0+0 (normal left inverted right x axis y axis) 1600mm x 900mm
1366x768 59.80*+
1024x768 59.92
800x600 59.86
640x480 59.38
320x240 59.52
720x480 59.71
640x400 59.95
320x200 58.96
1280x720 59.86
1024x576 59.90
864x486 59.92
720x400 59.55
640x350 59.77
➜ ~
```