Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This is a very hacky solution that I don't like. I couldn't find a way to detect whether the pointer is on the resize border of the window using Cocoa. I also couldn't find any documentation for any default border sizes. What I found in my testing was that the left and right borders were active 3 pixels inside of the Viewport (and probably 3px outside as well). For the bottom left corner, there seems to be a 12x12 box, and the bottom right seems to be 15x15. If the pointer is on the resize border, the Viewport will not receive the input and they will go the system instead, which will then trigger a resize. This seems to be the way to go if there aren't any coca API calls that can check this. An alternative to this solution would be to implement XBUTTON1/2 detection for win32 in upstream FLTK, which means we can rely entirely on FLTK's mouse input handling to do what we need.
- Loading branch information