Antialiasing problem (SDL2)

Hi,

I’m using the latest SDL2 build on Windows 7.
A window is created with antialiasing attributes:
SDL_GL_SetAttribute(SDL_GL_MULTISAMPLEBUFFERS, 1);
SDL_GL_SetAttribute(SDL_GL_MULTISAMPLESAMPLES, 8);
Antialiasing looks fine: http://pix.am/RxZb/
Problem is that window loses antialiasing when it was minimized and
restored: http://pix.am/PVS8/

Current workaround is the disabling of rendering when window is
minimized/hidden (I receive
SDL_WINDOWEVENT_MINIMIZED/SDL_WINDOWEVENT_HIDDEN/SDL_WINDOWEVENT_RESTORED
events)

But problem remains if window is minimized with Win+D key combo or Task
Manager (Application is not receiving any of SDL_WINDOWEVENT events.)
Also library does not provide any function to determine current window
visibility (or I was unable to find it).

Regards,
Alex

Additional information:
My native implementation of window with WinAPI checks window state with IsIconic(hwnd) function before rendering, and antialiasing works fine in all cases.