Not sure about latest versions of Windows, drivers, etc. but IIRC this could happen when Windows shows an UAC prompt or you hit Ctrl+Alt+Del. I only remember this happening on DirectX though, haven't used OpenGL back then.
Also how about switching displays, e.g. having two monitors, one on the onboard card, one on dedicated card, moving the Window between screens should(?) cause something, unless that's handled by drivers. Unfortunately can't test that right now.