~compiz-team/compiz-resizeinfo-plugin/0.9.5

« back to all changes in this revision

Viewing changes to resizeinfo.c

  • Committer: Danny Baumann
  • Date: 2008-11-24 06:50:32 UTC
  • Revision ID: git-v1:e148aef2d580105405356e93ca2e770ba2518a1a
Improve fade handling if a window is grabbed/ungrabbed during fade.

Show diffs side-by-side

added added

removed removed

Lines of Context:
392
392
 
393
393
    INFO_SCREEN (s);
394
394
 
395
 
    if (!is->pWindow && !(w->state & MAXIMIZE_STATE))
 
395
    if ((!is->pWindow || !is->drawing) && !(w->state & MAXIMIZE_STATE))
396
396
    {
397
397
        Bool showInfo;
398
398
        showInfo = ((w->sizeHints.width_inc != 1) && 
403
403
        {
404
404
            is->pWindow  = w;
405
405
            is->drawing  = TRUE;
406
 
            is->fadeTime = resizeinfoGetFadeTime (s->display);
 
406
            is->fadeTime = resizeinfoGetFadeTime (s->display) - is->fadeTime;
407
407
 
408
408
            is->resizeGeometry.x      = w->attrib.x;
409
409
            is->resizeGeometry.y      = w->attrib.y;
427
427
    if (w == is->pWindow)
428
428
    {
429
429
        is->drawing = FALSE;
430
 
        is->fadeTime = resizeinfoGetFadeTime (s->display);
 
430
        is->fadeTime = resizeinfoGetFadeTime (s->display) - is->fadeTime;
431
431
        damageScreen (s);
432
432
    }
433
433