godotengine / godotengine/godot
Grabbing native Popup window resize edge closes window instead of resizing
- Dominant language
- C++
- Stars
- 117k
- Forks
- 26.8k
- PR merge metrics
- PR metrics pending
Description
### Tested versions
- 4.3.stable
### System information
macOS 14.6.1
### Issue description
On resizable native Windows (and Popups) you can grab the edge to resize them. At least on macOS the system makes it easier for you to resize by allowing you to grab the window edge a couple of pixels inside and a couple of pixels outside the window edge, as indicated by where the cursor changes to a resize cursor.
On resizable native Window object in Godot this works as expected as you can see. However for Popup windows, if you start doing the resize outside the window the popup closes instead.
https://github.com/user-attachments/assets/f09327db-f626-4903-a94e-b7a99fb24b13
Since popups can be dismissed by clicking outside them I'm guessing this is simply what is happening, and it's not accounting for the fact that this click outside the window should actually start a resize drag instead of dismissing the Popup.
### Steps to reproduce
Show a native resizable Popup window using popup()
Try grabbing the edge to resize it where the cursor changes to the resize cursor just outside the window edge.
Observe the popup close.
### Minimal reproduction project (MRP)
[popupresize.zip](https://github.com/user-attachments/files/16740994/popupresize.zip)
Contributor guide
Assessment
This issue has not been assessed yet.