Author: olivier Date: 2006-10-03 21:10:05 +0000 (Tue, 03 Oct 2006) New Revision: 23276
Modified: xfwm4/trunk/src/client.c xfwm4/trunk/themes/default/themerc Log: Various optimizations: Do not draw wire frame when cycling is over, do not relocate the window on maximize/unmaximize if restore position is not set, increase the limit of resize per seconds to 50 Modified: xfwm4/trunk/src/client.c =================================================================== --- xfwm4/trunk/src/client.c 2006-10-03 19:26:37 UTC (rev 23275) +++ xfwm4/trunk/src/client.c 2006-10-03 21:10:05 UTC (rev 23276) @@ -85,7 +85,7 @@ #endif #ifndef MAX_RESIZES_PER_SECOND -#define MAX_RESIZES_PER_SECOND 20.0 +#define MAX_RESIZES_PER_SECOND 50.0 #endif #define OPACITY_SET_STEP (guint) 0x16000000 @@ -2857,7 +2857,7 @@ c->height = wc.height; c->width = wc.width; - if (FLAG_TEST (c->xfwm_flags, XFWM_FLAG_MANAGED)) + if (FLAG_TEST (c->xfwm_flags, XFWM_FLAG_MANAGED) && (restore_position)) { /* For some reason, the configure can generate EnterNotify events @@ -4136,7 +4136,7 @@ } else { - if (clientCheckLastOpTime (c)) + if (!(MAX_RESIZES_PER_SECOND > 0) || clientCheckLastOpTime (c)) { wc.x = c->x; wc.y = c->y; @@ -4403,14 +4403,17 @@ } } - if (c) + if (cycling) { - wireframeUpdate (c, passdata->wireframe); + if (c) + { + wireframeUpdate (c, passdata->wireframe); + } + else + { + cycling = FALSE; + } } - else - { - cycling = FALSE; - } } break; case KeyRelease: Modified: xfwm4/trunk/themes/default/themerc =================================================================== --- xfwm4/trunk/themes/default/themerc 2006-10-03 19:26:37 UTC (rev 23275) +++ xfwm4/trunk/themes/default/themerc 2006-10-03 21:10:05 UTC (rev 23276) @@ -11,5 +11,5 @@ title_horizontal_offset=1 title_shadow_active=frame title_shadow_inactive=false -title_vertical_offset_active=2 -title_vertical_offset_inactive=2 +title_vertical_offset_active=1 +title_vertical_offset_inactive=1 _______________________________________________ Xfce4-commits mailing list Xfce4-commits@xfce.org http://foo-projects.org/mailman/listinfo/xfce4-commits