]> Dogcows Code - chaz/openbox/blobdiff - openbox/frame.c
let the frame hold a focus state so that it can lie.
[chaz/openbox] / openbox / frame.c
index 3b9009360b02a6441498b67d6cfe6e77dd309dd2..f344f9e5c79afa08e782e6b94323e385e67972d3 100644 (file)
@@ -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);
 }
 
This page took 0.020795 seconds and 4 git commands to generate.