done, let me know if all is acceptable and I will squash again for merge


On Sun, Aug 4, 2013 at 2:01 PM, Joakim Plate <notifications@github.com>wrote:

> In xbmc/windowing/WinEventsSDL.cpp:
>
> > @@ -363,6 +364,15 @@ bool CWinEventsSDL::MessagePump()
> >        }
> >        case SDL_VIDEORESIZE:
> >        {
> > +        // Under linux returning from fullscreen, SDL sends an extra event to resize to the desktop
> > +        // resolution causing the previous window dimensions to be lost. This is needed to rectify
> > +        // that problem.
> > +        if(!g_Windowing.IsFullScreen())
> > +        {
> > +          if((event.resize.w == CDisplaySettings::Get().GetResolutionInfo(RES_DESKTOP).iWidth) &&
> > +              (event.resize.h == CDisplaySettings::Get().GetResolutionInfo(RES_DESKTOP).iHeight))
> > +            break;
>
> g_Windowing.DesktopResolution(g_Windowing.GetCurrentScreen()) returns the
> resolution index.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/xbmc/xbmc/pull/3004/files#r5570115>
> .
>