Mad-Cookies-Studio / mad-productivity

Ever felt like being productive? No? Me neither.
MIT License
131 stars 14 forks source link

Fix stack overflow when moving window #38

Open rtauziac opened 2 years ago

rtauziac commented 2 years ago

When we start dragging a window (after click and hold the title bar), it crashes every time. It was because of a stack overflow. The OS.get_window_position() somewhat triggered an _input event, effectively calling itself. I added a semaphore to block subsequent event triggers. Tested on Godot 3.5 macOS Monterey intel.