Skip to content

Wayland + libdecor 0.2.4: Extra empty spaces at top and bottom of window cause mouse event offset #112105

@BrachystochroneSD

Description

@BrachystochroneSD

Tested versions

  • Reproducible in 4.5
  • Get a segmentaion fault with 4.4 and libdecor 0.2.4

System information

Godot v4.5.1.stable unknown - Arch Linux #1 SMP PREEMPT_DYNAMIC Thu, 23 Oct 2025 18:49:03 +0000 on Wayland - Wayland display driver, Multi-window, 1 monitor - Vulkan (Forward+) - integrated AMD Radeon Vega 8 Graphics (RADV RAVEN) - AMD Ryzen 5 PRO 3500U w/ Radeon Vega Mobile Gfx (8 threads) - 13.53 GiB memory

Issue description

When running Godot on Wayland with Wayland support enabled and using libdecor 0.2.4, all non-fullscreen windows (e.g. editor window, popups, etc.) have two empty spaces—one at the top and one at the bottom of the window.

These spaces are visually blank areas outside the main content, and they cause mouse events to be vertically offset, making clicking and interaction inaccurate.

Fullscreen windows are not affected and Downgrading to libdecor 0.2.3 removes the issue.

Here is a screenshot:

Image

Steps to reproduce

  1. Launch Godot with Wayland support enabled.
  2. Use a system running libdecor 0.2.4.
  3. Open the editor or run a project in a non-fullscreen window.
  4. Observe empty margins at the top and bottom of the window.
  5. Try clicking inside the window — notice the mouse offset.

Minimal reproduction project (MRP)

N/A (occurs with any project or in the editor itself).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions