Closed TristanCacqueray closed 2 years ago
The function may fail, should the binding do something in that case?
The function may fail, should the binding do something in that case?
I think we should return a Maybe
here. Or possible Either String
if we want to automatically call SDL_GetError
? Unfortunately I can't quite remember what our error handling policy is - it might be good to check what other functions are doing.
Oh right, it seems like the other functions are returning a Maybe
, and I've updated the PR to do the same. Thanks for the feedback!
This change enables more accurate window position management by taking into account the display server decoration.