Skip to content

Input unresponsive and cursor display abnormal under Wayland #11

@fuzy112

Description

@fuzy112

Environment:

  • Project: neomacs (github.com/eval-exec/neomacs)
  • Build method: nix build successful
  • System: Wayland session
  • Command: RUST_LOG=TRACE ./result/bin/emacs -Q 1>log 2>&1

Problem Description:
After successfully building and running neomacs, the window displays normally but:

  1. Cannot type any characters
  2. Cannot move the cursor
  3. Cursor displays as "hollow" (possibly default shape or not set correctly)

Key Log Information:

  1. Window created successfully: Created winit window with id 1
  2. Wayland platform: Using Wayland platform
  3. wl_seat bound: Bound new global [38] wl_seat v7
  4. Cursor shape manager: Bound new global [39] wp_cursor_shape_manager_v1 v1
  5. wgpu initialization successful (Vulkan and GL backends)
  6. Character rendering normal (many add_char_glyph logs)

Missing Logs:

  • No keyboard input event handling logs
  • No mouse input event handling logs
  • No cursor shape setting logs

Possible Causes:

  1. Wayland input events not properly delivered to the application
  2. Cursor shape manager version compatibility issue (log shows: Version 2 of wp_cursor_shape_manager_v1 is available; binding is currently limited to 1)
  3. Input event handling logic missing or incorrect

Reproduction Steps:

  1. nix build
  2. RUST_LOG=TRACE ./result/bin/emacs -Q 1>log 2>&1
  3. Try to type or move cursor in the window

Expected Behavior:

  • Normal keyboard input reception
  • Cursor movable and displayed correctly
  • Cursor shape changes according to context

Additional Information:
Full log file attached (over 51200 bytes, contains detailed TRACE level logs).

Metadata

Metadata

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions