47,48d46 < #define M_PI 3.14159265358979323846 < 333c331,332 < static gint max = 14; --- > static gint max = 14; //Max height the icon gets to in pixels > static gint max_bounces = 10; 345,346c344,345 < < if (priv->effect_direction) { --- > > if (priv->effect_direction == AWN_TASK_EFFECT_DIR_UP) { 352,353c351,352 < } else { < priv->y_offset-=1; --- > } else if(priv->effect_direction == AWN_TASK_EFFECT_DIR_DOWN) { > priv->y_offset-=1; 367c366,382 < if ( priv->count > 10 ) { --- > if ( priv->count > max_bounces ) { > //Bounced Enough now... man, slow computer? > priv->effect_lock = FALSE; > priv->current_effect = AWN_TASK_EFFECT_NONE; > priv->effect_direction = AWN_TASK_EFFECT_DIR_UP; > priv->y_offset = 0; > priv->count = 0; > } > } > > //This makes sure there is no offscreen bouncing (which is partially seen)... > if (priv->settings->hidden) { > priv->y_offset = 0; > //if the program launches while awn is hidden, there should > //not be an extra bounce upon reentry. > if (priv->window != NULL) { > //finished bouncing, back to normal