delay re-rendering the frame while it is being iconify-animated until the animation finishes (avoid it flashing to unfocused)
This commit is contained in:
parent
d3c22b58cb
commit
ef8bd3947d
2 changed files with 7 additions and 1 deletions
|
@ -1630,10 +1630,11 @@ void frame_end_iconify_animation(ObFrame *self)
|
||||||
|
|
||||||
if (!self->visible)
|
if (!self->visible)
|
||||||
XUnmapWindow(ob_display, self->window);
|
XUnmapWindow(ob_display, self->window);
|
||||||
else
|
else {
|
||||||
/* Send a ConfigureNotify when the animation is done, this fixes
|
/* Send a ConfigureNotify when the animation is done, this fixes
|
||||||
KDE's pager showing the window in the wrong place. */
|
KDE's pager showing the window in the wrong place. */
|
||||||
client_reconfigure(self->client);
|
client_reconfigure(self->client);
|
||||||
|
}
|
||||||
|
|
||||||
/* we're not animating any more ! */
|
/* we're not animating any more ! */
|
||||||
self->iconify_animation_going = 0;
|
self->iconify_animation_going = 0;
|
||||||
|
@ -1641,6 +1642,8 @@ void frame_end_iconify_animation(ObFrame *self)
|
||||||
XMoveResizeWindow(ob_display, self->window,
|
XMoveResizeWindow(ob_display, self->window,
|
||||||
self->area.x, self->area.y,
|
self->area.x, self->area.y,
|
||||||
self->area.width, self->area.height);
|
self->area.width, self->area.height);
|
||||||
|
/* we delay re-rendering until after we're done animating */
|
||||||
|
framerender_frame(self);
|
||||||
XFlush(ob_display);
|
XFlush(ob_display);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -34,6 +34,9 @@ static void framerender_close(ObFrame *self, RrAppearance *a);
|
||||||
|
|
||||||
void framerender_frame(ObFrame *self)
|
void framerender_frame(ObFrame *self)
|
||||||
{
|
{
|
||||||
|
if (frame_iconify_animating(self))
|
||||||
|
return; /* delay redrawing until the animation is done */
|
||||||
|
|
||||||
{
|
{
|
||||||
gulong px;
|
gulong px;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue