--- ui/sdl2.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ui/sdl2.c b/ui/sdl2.c index 3823f0a834..811c21da27 100644 --- a/ui/sdl2.c +++ b/ui/sdl2.c @@ -451,8 +451,9 @@ static void handle_mousemotion(SDL_Event *ev) SDL_GetWindowSize(scon->real_window, &scr_w, &scr_h); max_x = scr_w - 1; max_y = scr_h - 1; - if (gui_grab && (ev->motion.x == 0 || ev->motion.y == 0 || - ev->motion.x == max_x || ev->motion.y == max_y)) { + if (gui_grab && !gui_fullscreen + && (ev->motion.x == 0 || ev->motion.y == 0 || + ev->motion.x == max_x || ev->motion.y == max_y)) { sdl_grab_end(scon); } if (!gui_grab && -- 2.15.0.rc0
- Re: [Qemu-devel] [PATCH ... Peter Maydell
- Re: [Qemu-devel] [PATCH ... Gerd Hoffmann
- Re: [Qemu-devel] [PATCH ... Peter Maydell
- Re: [Qemu-devel] [PATCH ... Gerd Hoffmann
- Re: [Qemu-devel] [PATCH 4/7] sdl2: On... Cole Robinson
- [Qemu-devel] [PATCH 6/7] sdl2: Fix dead keyboard a... Jindrich Makovicka
- [Qemu-devel] [PATCH 5/7] sdl2 uses surface relativ... Jindrich Makovicka
- Re: [Qemu-devel] [PATCH 5/7] sdl2 uses surfac... Gerd Hoffmann
- Re: [Qemu-devel] [PATCH 5/7] sdl2 uses su... Jindřich Makovička
- Re: [Qemu-devel] [PATCH 5/7] sdl2 use... Gerd Hoffmann
- [Qemu-devel] [PATCH 7/7] sdl2: Do not leave grab w... Jindrich Makovicka
- Re: [Qemu-devel] SDL2 various fixes Philippe Mathieu-Daudé