~ubuntu-branches/ubuntu/gutsy/compiz-fusion-plugins-main/gutsy

« back to all changes in this revision

Viewing changes to src/wall/wall.c

  • Committer: Bazaar Package Importer
  • Author(s): Michael Vogt
  • Date: 2007-06-25 14:53:30 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20070625145330-279imp4j31n39ybp
Tags: 0.0.0+git20070625-0ubuntu1
new git snapshot (fixes animation plugin breakage)

Show diffs side-by-side

added added

removed removed

Lines of Context:
556
556
                        ws->boxTimeout = 0;
557
557
 
558
558
                if (otherScreenGrabExist(s, "move", "scale", "group-drag", "wall", 0))
 
559
                {
 
560
                        ws->boxTimeout = 0;
559
561
                        ws->moving = FALSE;
 
562
                }
560
563
        }
561
564
 
562
565
        damageScreen(s);
862
865
}
863
866
 
864
867
 
865
 
static void wallDrawCairoTextureOnScreen(CompScreen *s, CompOutput *output,
866
 
                                         Region region)
 
868
static void wallDrawCairoTextureOnScreen(CompScreen *s)
867
869
{
868
870
        WALL_SCREEN(s);
869
871
 
870
 
        glPushMatrix();
871
 
        prepareXCoords(s, output, -DEFAULT_Z_CAMERA);
872
872
        glDisableClientState(GL_TEXTURE_COORD_ARRAY);
873
873
        glEnable(GL_BLEND);
874
874
 
1138
1138
 
1139
1139
        glDisable(GL_BLEND);
1140
1140
        glEnableClientState(GL_TEXTURE_COORD_ARRAY);
1141
 
        glPopMatrix();
1142
1141
        screenTexEnvMode (s, GL_REPLACE);
1143
1142
        glColor4usv(defaultColor);
1144
 
 
1145
1143
}
1146
1144
 
1147
1145
static void wallPaintScreen(CompScreen * s,
1186
1184
        if ((ws->moving || ws->boxTimeout) && wallGetShowSwitcher(s->display) &&
1187
1185
            (output->id == ws->boxOutputDevice || output == &s->fullscreenOutput))
1188
1186
        {
1189
 
                wallDrawCairoTextureOnScreen(s, output, region);
 
1187
                CompTransform sTransform = *transform;
 
1188
 
 
1189
                transformToScreenSpace (s, output, -DEFAULT_Z_CAMERA, &sTransform);
 
1190
 
 
1191
                glPushMatrix ();
 
1192
                glLoadMatrixf (sTransform.m);
 
1193
 
 
1194
                wallDrawCairoTextureOnScreen(s);
 
1195
 
 
1196
                glPopMatrix ();
1190
1197
 
1191
1198
                if (wallGetMiniscreen(s->display))
1192
1199
                {
1238
1245
                        moveScreenViewport(s, -origVX, -origVY, FALSE);
1239
1246
                }
1240
1247
        }
 
1248
 
1241
1249
        return status;
1242
1250
}
1243
1251