EogWindow: Fix critical warning when switching between fullscreen modes