The Sync functions are untested, but the Async ones work.
I wouldn't really expect this to get merged, but it seems simpler to share the fix as a PR.
The way it saves whether to switch back to exclusive fullscreen is not the most reliable, but it should work as long as only one file browser is used at once, which I imagine is most use cases.
There's probably a better way to "append" callbacks, but I don't know it and this works.
A simple workaround for #102.
The Sync functions are untested, but the Async ones work.
I wouldn't really expect this to get merged, but it seems simpler to share the fix as a PR.
The way it saves whether to switch back to exclusive fullscreen is not the most reliable, but it should work as long as only one file browser is used at once, which I imagine is most use cases.
There's probably a better way to "append" callbacks, but I don't know it and this works.