Skip to content

x11: fix rendering and input on XWayland#88

Open
erikgrahn13 wants to merge 1 commit into
VitalAudio:mainfrom
erikgrahn13:main
Open

x11: fix rendering and input on XWayland#88
erikgrahn13 wants to merge 1 commit into
VitalAudio:mainfrom
erikgrahn13:main

Conversation

@erikgrahn13

Copy link
Copy Markdown

Two fixes for XWayland where the Vulkan swapchain can be created before the compositor finishes its async surface handshake:

  • Call drawCallback() before entering the event loop to trigger an initial frame immediately on startup, which ensures the framebuffer is recreated at the correct size before any user interaction.

  • Remove the Decoration::Native guard from the Expose handler so that native-decorated windows (the most common standalone app case) also receive the forced framebuffer recreation on exposure.

Two fixes for XWayland where the Vulkan swapchain can be created before
the compositor finishes its async surface handshake:

- Call drawCallback() before entering the event loop to trigger an
  initial frame immediately on startup, which ensures the framebuffer
  is recreated at the correct size before any user interaction.

- Remove the Decoration::Native guard from the Expose handler so that
  native-decorated windows (the most common standalone app case) also
  receive the forced framebuffer recreation on exposure.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant