From 16a9ac018ed77e245e873be60729be509fa1ce92 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Fri, 25 Apr 2003 19:55:41 +0000 Subject: let the frame hold a focus state so that it can lie. dont focus windows while cycling, just highlight them as if they are focused --- openbox/frame.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'openbox/frame.c') 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); } -- cgit v1.2.3