ThemeMagic: Fix Minimize button behavior