Original Post
I need to do this to get right behaviour for GUI widgets at or near the edge of the window. This seems impossible to to with SDL, because mouse coordinates are always within the window, and mouse focus is only lost when the button is released(outside the window). Are there any other lightweight cross-platform window and input handling frameworks that can handle this?