From b94960c6455803efd52e35f40bf7f1778b0971f1 Mon Sep 17 00:00:00 2001 From: Gustavo Sverzut Barbieri Date: Fri, 17 Apr 2009 02:54:56 +0000 Subject: [PATCH] fix shelf autohide on zone geometry changes. when xrandr/xinerama changes zone (screen/output) geometry, the shelf needs to update its hide_origin and also do hide animation if it was hidden already. SVN revision: 40126 --- src/bin/e_shelf.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/bin/e_shelf.c b/src/bin/e_shelf.c index ad67cbb06..53d0e9b00 100644 --- a/src/bin/e_shelf.c +++ b/src/bin/e_shelf.c @@ -584,8 +584,14 @@ e_shelf_position_calc(E_Shelf *es) break; } es->hide_step = 0; - + es->hide_origin = -1; + e_shelf_move_resize(es, es->x, es->y, es->w, es->h); + if (es->hidden) + { + es->hidden = 0; + e_shelf_toggle(es, 0); + } } EAPI void