godotengine / godotengine/godot
Accidental touch on top left trackpad corner sometimes crashes editor window
- Dominant language
- C++
- Stars
- 117k
- Forks
- 26.8k
- PR merge metrics
- PR metrics pending
Description
### Tested versions
Happens on Godot v4.3.stable - macOS 14.6.1 - Vulkan (Forward+) - integrated Apple M1 Pro - Apple M1 Pro (10 Threads)
Never happened when using 4.2 stable.
### System information
Macbook Pro 16" - macOS 14.6.1 - Vulkan (Forward+) - integrated Apple M1 Pro - Apple M1 Pro (10 Threads)
### Issue description
I have large hands, and occasionally while typing code in Godot the base of my left thumb will occasionally touch the top left trackpad corner of my macbook pro. Sometimes (not every time, it seems to happen randomly) this touch will do two things:
1. Cause the main editor window to turn black. No swiping animation happens, the window just goes black. I've only observed this with fullscreen enabled.
2. A Godot editor file search window I've never seen before pops up over the black window
If I'm able to stop myself typing as soon as the file search window appears, I can either click on the file search window or perform a swiping gesture on the trackpad to bring the editor window back into focus. But if I hit a key after the file search window appears, the file search window will go fullscreen, at which point its almost impossible to get the Godot editor to reappear. If I swipe up to see the open windows tray, the Godot window is blacked out. There is no indication in the bottom system tray that the window is minimized. Sometimes by using the "Window" system tab at the top of the screen and fiddling with minimize, tile window to left of screen, etc, I can get the window to reappear when maximizing the window, but its not reliable. Usually I'll end up force quitting Godot.
I really do apologize for how weird and random this bug is, but I've scoured my system settings, and as far as I'm aware I don't have a trackpad gesture set up that would react to a top left touch. This also never happens outside using Godot. Hopefully its something like a hotkey setting that I just need to change, but this has happened to be regularly enough (and caused me to lose enough work) that I thought it was time to submit a bug report.
Thanks in advance for taking the time, and thanks for what you do to enable developers.
### Steps to reproduce
While typing in the code editor window, an accidental press of the very top left corner of the Macbook trackpad. It feels like it may trigger if the touch happens at the same time as a keypress, but I've not been able to confirm this yet.
### Minimal reproduction project (MRP)
I've included my editor settings .tres in case it proves helpful
[EditorSettings.zip](https://github.com/user-attachments/files/18995938/EditorSettings.zip)
Contributor guide
Research direction
Start by reproducing the issue with Godot v4.3.stable on macOS 14.6.1 using the attached EditorSettings.zip, while testing fullscreen mode and an accidental top-left trackpad touch during code editing. Trace the editor behavior that blacks out the main window and opens the unexpected file search window; done means the gesture no longer causes that state or makes the editor inaccessible.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp, macos
- Domain
- desktop, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100