Make guide be actually hidden when user disable it
Instead of being hidden it was being left visible but not tracking the cursor anymore. And when made visible again, its position only would be updated after mouse moves.
This commit is contained in:
parent
2591bcbf88
commit
044184ef17
|
@ -182,6 +182,22 @@ show_guides_apply(void)
|
|||
|
||||
EINA_LIST_FOREACH(zones, l, zone)
|
||||
{
|
||||
if (show_guides)
|
||||
{
|
||||
evas_object_move(zone->guide_v, zone->last_mouse.x, 0);
|
||||
evas_object_resize(zone->guide_v, 1, zone->h);
|
||||
evas_object_show(zone->guide_v);
|
||||
|
||||
evas_object_move(zone->guide_h, 0, zone->last_mouse.y);
|
||||
evas_object_resize(zone->guide_h, zone->w, 1);
|
||||
evas_object_show(zone->guide_h);
|
||||
}
|
||||
else
|
||||
{
|
||||
evas_object_hide(zone->guide_v);
|
||||
evas_object_hide(zone->guide_h);
|
||||
}
|
||||
|
||||
elm_check_state_set(zone->gui.show_guides, show_guides);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue