From 4fbcb73166f5707dee330358b9ba4430f6d2c482 Mon Sep 17 00:00:00 2001 From: rubidium Date: Sat, 29 Jun 2013 18:21:19 +0000 Subject: (svn r25523) -Fix [FS#5587]: SDL does not give an event when an application gets mouse focus while going to full screen, so manually force the mouse-is-in-window state --- src/video/sdl_v.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') diff --git a/src/video/sdl_v.cpp b/src/video/sdl_v.cpp index 736e069ce..d66ad59a8 100644 --- a/src/video/sdl_v.cpp +++ b/src/video/sdl_v.cpp @@ -393,6 +393,11 @@ bool VideoDriver_SDL::CreateMainSurface(uint w, uint h) _screen.dst_ptr = newscreen->pixels; _sdl_screen = newscreen; + /* When in full screen, we will always have the mouse cursor + * within the window, even though SDL does not give us the + * appropriate event to know this. */ + if (_fullscreen) _cursor.in_window = true; + Blitter *blitter = BlitterFactoryBase::GetCurrentBlitter(); blitter->PostResize(); -- cgit v1.2.3-70-g09d2