all repos — openbox @ 4b71209ec89902e2f88522603deeab8b240b34c3

openbox fork - make it a bit more like ryudo

make the frame iconify animation go right into the icon geometry area instead of stopping before it
Dana Jansens danakj@orodu.net
commit

4b71209ec89902e2f88522603deeab8b240b34c3

parent

0c8aca23eb94efe740acffc6c20ab73794da2218

1 files changed, 4 insertions(+), 5 deletions(-)

jump to
M openbox/frame.copenbox/frame.c

@@ -1694,7 +1694,7 @@ /* how far do we have left to go ? */

g_get_current_time(&now); time = frame_animate_iconify_time_left(self, &now); - if (time == 0 || iconifying) { + if ((time > 0 && iconifying) || (time == 0 && !iconifying)) { /* start where the frame is supposed to be */ x = self->area.x; y = self->area.y;

@@ -1725,12 +1725,11 @@ w = w - (dw * elapsed) / FRAME_ANIMATE_ICONIFY_TIME;

h = self->size.top; /* just the titlebar */ } + XMoveResizeWindow(ob_display, self->window, x, y, w, h); + XFlush(ob_display); + if (time == 0) frame_end_iconify_animation(self); - else { - XMoveResizeWindow(ob_display, self->window, x, y, w, h); - XFlush(ob_display); - } return time > 0; /* repeat until we're out of time */ }