summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Mikos <metastability@opencompositing.org>2008-01-10 21:57:37 +1030
committerDavid Mikos <metastability@opencompositing.org>2008-01-10 21:57:37 +1030
commitf38c79448007544afe3e422c20c7ba429e2884f0 (patch)
tree5894e7193d1ebac8329c99359d8262ab6cdb148c
parent5d230f447bfd7f30adf4a81a79b3ab295284e047 (diff)
downloadrubik-f38c79448007544afe3e422c20c7ba429e2884f0.tar.gz
rubik-f38c79448007544afe3e422c20c7ba429e2884f0.tar.bz2
Only update screen when active.
-rw-r--r--rubik.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/rubik.c b/rubik.c
index f99dfa2..ef75a4b 100644
--- a/rubik.c
+++ b/rubik.c
@@ -830,9 +830,11 @@ static Bool RubikDamageWindowRect(CompWindow *w, Bool initial, BoxPtr rect){
Bool status = TRUE;
RUBIK_SCREEN(w->screen);
+ CUBE_SCREEN (w->screen);
//RUBIK_WINDOW(w);
- damageScreen(w->screen);
+ if (rs->initiated && (cs->rotationState!=RotationNone || !rubikGetEnableOnManualRotate(w->screen)))
+ damageScreen(w->screen);
UNWRAP(rs, w->screen, damageWindowRect);
status |= (*w->screen->damageWindowRect)(w, initial, rect);
@@ -958,8 +960,9 @@ RubikDrawWindowTexture(CompWindow * w, CompTexture * texture,
Bool newWindow = TRUE;
int i;
for (i=0; i<rs->numDesktopWindows; i++) {
- if (w->texture->name==(*rs->w[i]).texture->name)
+ if (w->texture->name==(*rs->w[i]).texture->name) {
newWindow = FALSE;
+ }
}
if (newWindow) {
rs->numDesktopWindows++;