summaryrefslogtreecommitdiff
path: root/openbox/frame.c
diff options
context:
space:
mode:
Diffstat (limited to 'openbox/frame.c')
-rw-r--r--openbox/frame.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/openbox/frame.c b/openbox/frame.c
index 3b900936..f344f9e5 100644
--- a/openbox/frame.c
+++ b/openbox/frame.c
@@ -124,6 +124,8 @@ Frame *frame_new()
attrib.cursor = ob_cursors.br;
self->rgrip = createWindow(self->handle, mask, &attrib);
+ self->focused = FALSE;
+
/* the other stuff is shown based on decor settings */
XMapWindow(ob_display, self->plate);
XMapWindow(ob_display, self->lgrip);
@@ -386,8 +388,9 @@ void frame_adjust_state(Frame *self)
framerender_frame(self);
}
-void frame_adjust_focus(Frame *self)
+void frame_adjust_focus(Frame *self, gboolean hilite)
{
+ self->focused = hilite;
framerender_frame(self);
}