You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Regression] SDL_VIDEODRIVER=x11 Phosh+XWayland single finger drag handling completely broken for both SDL_TOUCH_MOUSEID mouse events and finger events
#5924
Running an SDL app with SDL_VIDEODRIVER=x11 using the Phosh desktop (which is wayland-only so this uses XWayland), single finger drag handling is now completely broken for both SDL_TOUCH_MOUSEID mouse events and finger events. Mouse up/down touch up/down events are issued for the same set of coordinates always no matter how far you drag a single finger across screen, completely breaking any application that either has scrollbars to be dragged, or any drag and drop UI elements, or requires touch scrolling to navigate larger screens. This used to work with an older SDL2 and Phosh version, or in other words I am not sure which one of the two changed and broke this.
SDL2 version tested: 2.0.22-r0 (as shipped by postmarketOS 22.06)
Phosh version tested: 0.17.0 (as shipped by postmarketOS 22.06)
Device tested: PinePhone 1.2 CE 3GB Allwinner model
Steps to reproduce:
Be on a Phosh desktop on a touch device. I imagine installing Phosh on an x64 laptop as shipped by Fedora if your laptop has a touch screen should work. Edit: apparently this is maybe not Phosh-related, so KDE or GNOME should then reproduce it as well, but I didn't have the chance to try!
Compile via gcc -o sdlx11phoshbug sdlx11phoshbug.c -lSDL2 and run ./sdlx11phoshbug
Drag your finger across the window and lift it again
Expected behavior: one square where your drag started, another where it stopped. Actual behavior: both squares are always where your finger drag started, which is rather wrong. You can also see the terminal output for the mouse button up shows wrong coordinates.
The text was updated successfully, but these errors were encountered:
I also noticed the number of fingers reported by SDL is 0 both right after the mouse down/finger down and the mouse up/finger up events. I think for the first pair at least this is wrong or unexpected and should be 1. Not sure if related or not
This isn't related to Phosh at all, touch handling under X11 in SDL is broken since 2.0.22. I see test/testgesture working fine on Plasma with SDL 2.0.20 and broken with 2.0.22.
(scroll down for steps to reproduce)
Running an SDL app with
SDL_VIDEODRIVER=x11
using the Phosh desktop (which is wayland-only so this uses XWayland), single finger drag handling is now completely broken for both SDL_TOUCH_MOUSEID mouse events and finger events. Mouse up/down touch up/down events are issued for the same set of coordinates always no matter how far you drag a single finger across screen, completely breaking any application that either has scrollbars to be dragged, or any drag and drop UI elements, or requires touch scrolling to navigate larger screens. This used to work with an older SDL2 and Phosh version, or in other words I am not sure which one of the two changed and broke this.SDL2 version tested: 2.0.22-r0 (as shipped by postmarketOS 22.06)
Phosh version tested: 0.17.0 (as shipped by postmarketOS 22.06)
Device tested: PinePhone 1.2 CE 3GB Allwinner model
Steps to reproduce:
Be on a Phosh desktop on a touch device. I imagine installing Phosh on an x64 laptop as shipped by Fedora if your laptop has a touch screen should work. Edit: apparently this is maybe not Phosh-related, so KDE or GNOME should then reproduce it as well, but I didn't have the chance to try!
Save this code to
sdlx11phoshbug.c
:gcc -o sdlx11phoshbug sdlx11phoshbug.c -lSDL2
and run./sdlx11phoshbug
The text was updated successfully, but these errors were encountered: