Skip to content
Snippets Groups Projects
Commit 9b1db542 authored by Ivica Bukvic's avatar Ivica Bukvic
Browse files

fixed regression inside image where selection box showed up erroneously on the parent window

parent 97fcb18e
No related branches found
No related tags found
No related merge requests found
...@@ -181,7 +181,7 @@ static void image_select(t_gobj *z, t_glist *glist, int state) ...@@ -181,7 +181,7 @@ static void image_select(t_gobj *z, t_glist *glist, int state)
t_image *x = (t_image *)z; t_image *x = (t_image *)z;
x->x_selected = state; x->x_selected = state;
if (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) if (!x->x_gop_spill && (x->x_img_width + x->x_img_height) >= 2)
sys_vgui(".x%x.c create rectangle \ sys_vgui(".x%x.c create rectangle \
%d %d %d %d -tags %xSEL -outline $select_color\n", %d %d %d %d -tags %xSEL -outline $select_color\n",
......
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