summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/qemu/qemu/disable-grabs.patch
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2018-03-09 20:55:52 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-03-11 06:27:00 -0700
commit81995e2a0e0468b3a14cf85c40d9cd7a01b55a76 (patch)
tree9a6d21c3ba70c40084bf071a100e6471b45a9e64 /meta/recipes-devtools/qemu/qemu/disable-grabs.patch
parenta2fdf7fb08acef1b495fecee84ff536f0a33bb58 (diff)
downloadpoky-81995e2a0e0468b3a14cf85c40d9cd7a01b55a76.tar.gz
qemu: refresh patches
The patch tool will apply patches by default with "fuzz", which is where if the hunk context isn't present but what is there is close enough, it will force the patch in. Whilst this is useful when there's just whitespace changes, when applied to source it is possible for a patch applied with fuzz to produce broken code which still compiles (see #10450). This is obviously bad. We'd like to eventually have do_patch() rejecting any fuzz on these grounds. For that to be realistic the existing patches with fuzz need to be rebased and reviewed. (From OE-Core rev: a5c1069d2c0570186792d61151e1865642afd73a) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/qemu/qemu/disable-grabs.patch')
-rw-r--r--meta/recipes-devtools/qemu/qemu/disable-grabs.patch23
1 files changed, 10 insertions, 13 deletions
diff --git a/meta/recipes-devtools/qemu/qemu/disable-grabs.patch b/meta/recipes-devtools/qemu/qemu/disable-grabs.patch
index 123833f824..77117890f4 100644
--- a/meta/recipes-devtools/qemu/qemu/disable-grabs.patch
+++ b/meta/recipes-devtools/qemu/qemu/disable-grabs.patch
@@ -24,11 +24,11 @@ Signed-off-by: Eric BĂ©nard <eric@eukrea.com>
24 ui/sdl.c | 12 ++++++++++-- 24 ui/sdl.c | 12 ++++++++++--
25 1 file changed, 10 insertions(+), 2 deletions(-) 25 1 file changed, 10 insertions(+), 2 deletions(-)
26 26
27diff --git a/ui/sdl.c b/ui/sdl.c 27Index: qemu-2.11.1/ui/sdl.c
28index 39a42d6..9b8abe5 100644 28===================================================================
29--- a/ui/sdl.c 29--- qemu-2.11.1.orig/ui/sdl.c
30+++ b/ui/sdl.c 30+++ qemu-2.11.1/ui/sdl.c
31@@ -59,6 +59,10 @@ static SDL_Cursor *guest_sprite = NULL; 31@@ -63,6 +63,10 @@ static SDL_PixelFormat host_format;
32 static int scaling_active = 0; 32 static int scaling_active = 0;
33 static Notifier mouse_mode_notifier; 33 static Notifier mouse_mode_notifier;
34 static int idle_counter; 34 static int idle_counter;
@@ -37,10 +37,10 @@ index 39a42d6..9b8abe5 100644
37+#endif 37+#endif
38+static doing_grabs = True; 38+static doing_grabs = True;
39 39
40 static void sdl_update(DisplayChangeListener *dcl, 40 #define SDL_REFRESH_INTERVAL_BUSY 10
41 int x, int y, int w, int h) 41 #define SDL_MAX_IDLE_COUNT (2 * GUI_REFRESH_INTERVAL_DEFAULT \
42@@ -384,14 +388,16 @@ static void sdl_grab_start(void) 42@@ -431,14 +435,16 @@ static void sdl_grab_start(void)
43 } 43 }
44 } else 44 } else
45 sdl_hide_cursor(); 45 sdl_hide_cursor();
46- SDL_WM_GrabInput(SDL_GRAB_ON); 46- SDL_WM_GrabInput(SDL_GRAB_ON);
@@ -58,7 +58,7 @@ index 39a42d6..9b8abe5 100644
58 gui_grab = 0; 58 gui_grab = 0;
59 sdl_show_cursor(); 59 sdl_show_cursor();
60 sdl_update_caption(); 60 sdl_update_caption();
61@@ -909,6 +915,8 @@ void sdl_display_init(DisplayState *ds, int full_screen, int no_frame) 61@@ -986,6 +992,8 @@ void sdl_display_init(DisplayState *ds,
62 * This requires SDL >= 1.2.14. */ 62 * This requires SDL >= 1.2.14. */
63 setenv("SDL_DISABLE_LOCK_KEYS", "1", 1); 63 setenv("SDL_DISABLE_LOCK_KEYS", "1", 1);
64 64
@@ -67,6 +67,3 @@ index 39a42d6..9b8abe5 100644
67 flags = SDL_INIT_VIDEO | SDL_INIT_NOPARACHUTE; 67 flags = SDL_INIT_VIDEO | SDL_INIT_NOPARACHUTE;
68 if (SDL_Init (flags)) { 68 if (SDL_Init (flags)) {
69 fprintf(stderr, "Could not initialize SDL(%s) - exiting\n", 69 fprintf(stderr, "Could not initialize SDL(%s) - exiting\n",
70--
711.8.3.1
72