It does not work. If i refer to global, it's undeclared. After adding struct GlobalState global it works, but window_x and window_y values are zero. values are zero.