summaryrefslogtreecommitdiff
path: root/openbox/frame.c
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-04-25 19:55:41 +0000
committerDana Jansens <danakj@orodu.net>2003-04-25 19:55:41 +0000
commit16a9ac018ed77e245e873be60729be509fa1ce92 (patch)
treec962c01ed887de0740cb90b4d9e30e8153fbf824 /openbox/frame.c
parent11b7764e5f357d0d93a25161e72bb746400797bd (diff)
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
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);
}