diff options
Diffstat (limited to 'meta/recipes-devtools')
-rw-r--r-- | meta/recipes-devtools/qemu/files/disable-grabs.patch | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/meta/recipes-devtools/qemu/files/disable-grabs.patch b/meta/recipes-devtools/qemu/files/disable-grabs.patch index 99ad00b2e3..41726b1c87 100644 --- a/meta/recipes-devtools/qemu/files/disable-grabs.patch +++ b/meta/recipes-devtools/qemu/files/disable-grabs.patch | |||
@@ -13,30 +13,33 @@ the current grabbing behaviour for everyone else. | |||
13 | Upstream-Status: Pending | 13 | Upstream-Status: Pending |
14 | Signed-off-by: Ross Burton <ross.burton@intel.com> | 14 | Signed-off-by: Ross Burton <ross.burton@intel.com> |
15 | 15 | ||
16 | |||
17 | From 4b1988ecb01a178269ec0513a75f2ec620c7ef6a Mon Sep 17 00:00:00 2001 | 16 | From 4b1988ecb01a178269ec0513a75f2ec620c7ef6a Mon Sep 17 00:00:00 2001 |
18 | From: Ross Burton <ross.burton@intel.com> | 17 | From: Ross Burton <ross.burton@intel.com> |
19 | Date: Wed, 18 Sep 2013 14:04:54 +0100 | 18 | Date: Wed, 18 Sep 2013 14:04:54 +0100 |
20 | Subject: [PATCH] sdl.c: allow user to disable pointer grabs | 19 | Subject: [PATCH] sdl.c: allow user to disable pointer grabs |
21 | 20 | ||
22 | Signed-off-by: Ross Burton <ross.burton@intel.com> | 21 | Signed-off-by: Ross Burton <ross.burton@intel.com> |
22 | Signed-off-by: Eric BĂ©nard <eric@eukrea.com> | ||
23 | --- | 23 | --- |
24 | ui/sdl.c | 9 +++++++-- | 24 | ui/sdl.c | 12 ++++++++++-- |
25 | 1 file changed, 7 insertions(+), 2 deletions(-) | 25 | 1 file changed, 10 insertions(+), 2 deletions(-) |
26 | 26 | ||
27 | diff --git a/ui/sdl.c b/ui/sdl.c | 27 | diff --git a/ui/sdl.c b/ui/sdl.c |
28 | index 39a42d6..6095aa6 100644 | 28 | index 39a42d6..9b8abe5 100644 |
29 | --- a/ui/sdl.c | 29 | --- a/ui/sdl.c |
30 | +++ b/ui/sdl.c | 30 | +++ b/ui/sdl.c |
31 | @@ -59,6 +59,7 @@ static SDL_Cursor *guest_sprite = NULL; | 31 | @@ -59,6 +59,10 @@ static SDL_Cursor *guest_sprite = NULL; |
32 | static SDL_PixelFormat host_format; | 32 | static SDL_PixelFormat host_format; |
33 | static int scaling_active = 0; | 33 | static int scaling_active = 0; |
34 | static Notifier mouse_mode_notifier; | 34 | static Notifier mouse_mode_notifier; |
35 | +#ifndef True | ||
36 | +#define True 1 | ||
37 | +#endif | ||
35 | +static doing_grabs = True; | 38 | +static doing_grabs = True; |
36 | 39 | ||
37 | static void sdl_update(DisplayChangeListener *dcl, | 40 | static void sdl_update(DisplayChangeListener *dcl, |
38 | int x, int y, int w, int h) | 41 | int x, int y, int w, int h) |
39 | @@ -384,14 +385,16 @@ static void sdl_grab_start(void) | 42 | @@ -384,14 +388,16 @@ static void sdl_grab_start(void) |
40 | SDL_WarpMouse(guest_x, guest_y); | 43 | SDL_WarpMouse(guest_x, guest_y); |
41 | } else | 44 | } else |
42 | sdl_hide_cursor(); | 45 | sdl_hide_cursor(); |
@@ -55,7 +58,7 @@ index 39a42d6..6095aa6 100644 | |||
55 | gui_grab = 0; | 58 | gui_grab = 0; |
56 | sdl_show_cursor(); | 59 | sdl_show_cursor(); |
57 | sdl_update_caption(); | 60 | sdl_update_caption(); |
58 | @@ -909,6 +912,8 @@ void sdl_display_init(DisplayState *ds, | 61 | @@ -909,6 +915,8 @@ void sdl_display_init(DisplayState *ds, int full_screen, int no_frame) |
59 | * This requires SDL >= 1.2.14. */ | 62 | * This requires SDL >= 1.2.14. */ |
60 | setenv("SDL_DISABLE_LOCK_KEYS", "1", 1); | 63 | setenv("SDL_DISABLE_LOCK_KEYS", "1", 1); |
61 | 64 | ||
@@ -65,5 +68,5 @@ index 39a42d6..6095aa6 100644 | |||
65 | if (SDL_Init (flags)) { | 68 | if (SDL_Init (flags)) { |
66 | fprintf(stderr, "Could not initialize SDL(%s) - exiting\n", | 69 | fprintf(stderr, "Could not initialize SDL(%s) - exiting\n", |
67 | -- | 70 | -- |
68 | 1.7.10.4 | 71 | 1.8.3.1 |
69 | 72 | ||