From 55f7a0d0dc003e3127ad4d66eb274808e0be4aea Mon Sep 17 00:00:00 2001 From: Daiki Ueno Date: Mon, 15 Aug 2011 18:12:17 +0900 Subject: [PATCH] Make sure large key does not overlap with the small key. --- eek/eek-gtk-keyboard.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eek/eek-gtk-keyboard.c b/eek/eek-gtk-keyboard.c index d64a42e4..f967c530 100644 --- a/eek/eek-gtk-keyboard.c +++ b/eek/eek-gtk-keyboard.c @@ -419,7 +419,7 @@ magnify_bounds (GtkWidget *self, large_bounds->height = bounds->height * scale; x = bounds->x - (large_bounds->width - bounds->width) / 2; - y = bounds->y - large_bounds->height + bounds->height / 2; + y = bounds->y - large_bounds->height; large_bounds->x = CLAMP(x, 0, allocation.width - large_bounds->width); large_bounds->y = CLAMP(y, 0, allocation.height - large_bounds->height);