Skip to content
Snippets Groups Projects
Commit f8b8d633 authored by Jan Kiszka's avatar Jan Kiszka Committed by Anthony Liguori
Browse files

sdl: Don't release input on mouse mode change in full-screen mode


While in full-screen mode, the input focus naturally belongs to the SDL
window. Avoid dropping it when switching from absolute to relative
mouse mode.

Signed-off-by: default avatarJan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: default avatarAnthony Liguori <aliguori@us.ibm.com>
parent fa7d1867
No related branches found
No related tags found
No related merge requests found
......@@ -491,7 +491,9 @@ static void sdl_mouse_mode_change(Notifier *notify, void *data)
absolute_enabled = 1;
}
} else if (absolute_enabled) {
sdl_grab_end();
if (!gui_fullscreen) {
sdl_grab_end();
}
absolute_enabled = 0;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment