chen08209:FlClash 调整 Wayland 拖动事件,KWin 仍待验证

chen08209 说明开发分支保留原始鼠标或触摸事件副本,用其设备、按键和时间启动 Linux 窗口拖动,不再合成释放事件;触摸取消交由下一版 Flutter 3.50 处理。GNOME Wayland 的鼠标与触屏交替拖动测试通过,团队无法测试 KWin,仍待该环境复测。

作者原文

Thanks for the detailed analysis and the patch, it pinpointed the problem. We took the plugin-side part of it on our development branch: the drag now keeps a full copy (gdk_event_copy) of the last button press or touch begin and starts the move with gdk_window_begin_move_drag_for_device using that event's device, button and time, and the synthetic button release is gone. We left out the GDK_TOUCH_CANCEL handling because the next release moves to Flutter 3.50, whose Linux embedder now cancels the pointer or touch itself when the compositor takes the grab (flutter/flutter#192277). On GNOME Wayland with Flutter 3.50, repeated mouse and touchscreen drags mixed with taps kept moving the window, and the GDK_IS_DEVICE assertion no longer appears. We could not test on KWin, so please try the next release on your Pad and tell us if dragging still stops; we'll keep this open until then.