This works perfectly on my desktop, but on my laptop (Motile brand, AMD GPU) the code "window_frame_is_ready" always returns false. I'm going to test to see if I can get away with removing this conditional.
EDIT: Well, now I can switch between fullscreen and windowed, but I can't seem to get the window border to appear. Very weird.