save some rendering
This commit is contained in:
parent
9aa5ca29ae
commit
6194c9796c
1 changed files with 5 additions and 3 deletions
|
@ -528,9 +528,11 @@ void frame_adjust_state(ObFrame *self)
|
||||||
|
|
||||||
void frame_adjust_focus(ObFrame *self, gboolean hilite)
|
void frame_adjust_focus(ObFrame *self, gboolean hilite)
|
||||||
{
|
{
|
||||||
self->focused = hilite;
|
if (self->focused != hilite) {
|
||||||
framerender_frame(self);
|
self->focused = hilite;
|
||||||
XFlush(ob_display);
|
framerender_frame(self);
|
||||||
|
XFlush(ob_display);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void frame_adjust_title(ObFrame *self)
|
void frame_adjust_title(ObFrame *self)
|
||||||
|
|
Loading…
Reference in a new issue