Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

glfw - Fix hidden cursor on re-focus and window repaint #32

Merged

Commits on Dec 17, 2023

  1. glfw - Fix hidden cursor on re-focus and window repaint

    * Related bug report: ScenicFramework/scenic#324
    
    * On some Window managers (e.g. CTWM) the window is not repainted when
      another window is moved over it. Add `refresh_window_callback` and
      "redraw" (reuse `reshape_window` for now...).
    
    * At least on Hikari (Wayland), when the cursor leaves the window and
      re-enters the window, the cusor was no longer visible. This commit
      fixes this issue by adding a `focus_window_callback` and explicitly
      setting the cursor when focus is regained.
    
    * NOTE: This might (or might not) show a cursor where no cursor is
      wanted (touch-screen devices?). To fix this, the `glfwSetCusor` and
      `glfwSetInputMode` calls in `focus_window_callback` should be
      conditionalized by a global per-device setting, whether a cursor is
      desired or not.
    mneumann committed Dec 17, 2023
    Configuration menu
    Copy the full SHA
    a948bdd View commit details
    Browse the repository at this point in the history