From 9b1db542ea7628b3894547f055bd9c3539256a92 Mon Sep 17 00:00:00 2001 From: Ivica Ico Bukvic <ico@vt.edu> Date: Wed, 23 Oct 2013 12:34:37 -0400 Subject: [PATCH] fixed regression inside image where selection box showed up erroneously on the parent window --- externals/ggee/gui/image.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/externals/ggee/gui/image.c b/externals/ggee/gui/image.c index ba0d7b2c8..acccd2ae4 100644 --- a/externals/ggee/gui/image.c +++ b/externals/ggee/gui/image.c @@ -181,7 +181,7 @@ static void image_select(t_gobj *z, t_glist *glist, int state) t_image *x = (t_image *)z; x->x_selected = state; if (state) { - if (glist_istoplevel(glist)) { + if (x->x_glist == glist_getcanvas(glist)) { if (!x->x_gop_spill && (x->x_img_width + x->x_img_height) >= 2) sys_vgui(".x%x.c create rectangle \ %d %d %d %d -tags %xSEL -outline $select_color\n", -- GitLab