]> Dogcows Code - chaz/openbox/commitdiff
save some rendering
authorDana Jansens <danakj@orodu.net>
Tue, 15 May 2007 03:46:51 +0000 (03:46 +0000)
committerDana Jansens <danakj@orodu.net>
Tue, 15 May 2007 03:46:51 +0000 (03:46 +0000)
openbox/frame.c

index 8809e627c9ed2f54212aaa7b33c38040b22b5635..6140e5eba1124050d53eee2c6348fa9fc99025fb 100644 (file)
@@ -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)
This page took 0.022732 seconds and 4 git commands to generate.