https://bugs.winehq.org/show_bug.cgi?id=2082
--- Comment #141 from Ken Thomases ken@codeweavers.com --- (In reply to comment #140)
If we're reasonably sure that there's always a meaningful device window, then we can change the extension to just provide a function:
BOOL wglEnableFullScreenWINE(HDC hdc, BOOL enable);
After thinking about it some more, I've changed my mind about this suggestion. Such a function implies that the full-screen state can be toggled on or off at any point during the DC's life. Really, we want it set immediately upon the DC being obtained and cleared just before it's released. So, it should be part of obtaining and releasing it.
My initial idea was a custom MakeCurrent, but I don't think that works well. The DC needs to be "special" for operations that precede making the context current.