Skip to content

Can't Use Scene Undo on Wayland After Having Opened a Context Menu #105908

Closed
@mason1920

Description

@mason1920

Tested versions

  • Reproducible in: v4.5.dev.custom_build [f4c7a5a] and later
  • Not reproducible in: v4.4.1.stable.arch_linux and v4.5.dev.custom_build [27b2ba6]

System information

Godot v4.5.dev (84d3adc) - Arch Linux #1 SMP PREEMPT_DYNAMIC Sat, 26 Apr 2025 00:06:37 +0000 on Wayland - Wayland display driver, Multi-window, 3 monitors - Vulkan (Forward+) - dedicated AMD Radeon RX 6600 XT (RADV NAVI23) - AMD Ryzen 7 5800X 8-Core Processor (16 threads) - sway version 1.10.1

Issue description

Opening (then closing) a context menu at any point in the editor will prevent the user from undoing changes to the scene using the scene→undo (ctrl+z) tool, resulting in the output panel message "can't undo while mouse buttons are pressed." Using the history panel will still work however.

I believe it is a regression caused by pull #101774.

Steps to reproduce

  1. set editor setting run/platforms/linuxbsd/prefer_wayland
  2. restart the editor
  3. edit a project
  4. make a change to a scene
  5. right click to open a context menu
  6. close the context menu
  7. attempt to undo the changes using scene→undo (ctrl+z)
  8. see the message "can't undo while mouse buttons are pressed" in the output panel

Minimal reproduction project (MRP)

N/A

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Very Bad

Relationships

None yet

Development

No branches or pull requests

Issue actions