From: Dana Jansens Date: Tue, 15 May 2007 03:46:51 +0000 (+0000) Subject: save some rendering X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=6194c9796c22affe9ac3ee712f3fee4b67a7fe36;p=chaz%2Fopenbox save some rendering --- diff --git a/openbox/frame.c b/openbox/frame.c index 8809e627..6140e5eb 100644 --- a/openbox/frame.c +++ b/openbox/frame.c @@ -528,9 +528,11 @@ void frame_adjust_state(ObFrame *self) void frame_adjust_focus(ObFrame *self, gboolean hilite) { - self->focused = hilite; - framerender_frame(self); - XFlush(ob_display); + if (self->focused != hilite) { + self->focused = hilite; + framerender_frame(self); + XFlush(ob_display); + } } void frame_adjust_title(ObFrame *self)