Bug 47539

Summary: goneko: wayland support
Product: Sisyphus Reporter: Yuri N. Sedunov <aris>
Component: gonekoAssignee: Anton Zhukharev <ancieg>
Status: CLOSED WONTFIX QA Contact: qa-sisyphus
Severity: enhancement    
Priority: P5 CC: ancieg
Version: unstable   
Hardware: x86_64   
OS: Linux   

Description Yuri N. Sedunov 2023-09-12 19:22:30 MSK
В wayland-сессии котяра игнорирует курсор. Прошу исправить.
Comment 1 Anton Zhukharev 2023-09-12 22:10:20 MSK
https://packages.altlinux.org/en/tasks/329423/

Неясная проблема с go-пакетом glfw, который пишет иного подобного в терминал:

2023/09/12 22:09:01 PlatformError: Wayland: Window position retrieval not supported
2023/09/12 22:09:01 PlatformError: Wayland: Window position setting not supported

Думаю, что из-за этого котяра и игнорирует курсор в Wayland-сессии.
Comment 2 Anton Zhukharev 2023-09-14 21:14:26 MSK
https://github.com/go-gl/glfw/blob/master/v3.3/glfw/glfw/src/wl_window.c#L1957

void _glfwPlatformGetWindowPos(_GLFWwindow* window, int* xpos, int* ypos)
{
    // A Wayland client is not aware of its position, so just warn and leave it
    // as (0, 0)

    _glfwInputError(GLFW_PLATFORM_ERROR,
                    "Wayland: Window position retrieval not supported");
}

void _glfwPlatformSetWindowPos(_GLFWwindow* window, int xpos, int ypos)
{
    // A Wayland client can not set its position, so just warn

    _glfwInputError(GLFW_PLATFORM_ERROR,
                    "Wayland: Window position setting not supported");
}