]> rtime.felk.cvut.cz Git - l4.git/blobdiff - l4/pkg/mag/server/src/view_stack.cc
update
[l4.git] / l4 / pkg / mag / server / src / view_stack.cc
index d2837a110d06cc9c544f48043abf39986ee3054f..3d0d2ffb1584fe2543eeb763c28845630eeb267a 100644 (file)
@@ -117,7 +117,7 @@ View_stack::draw_frame(View const *v) const
   if (_mode.flat() || !v->need_frame())
     return;
 
-  Rgb32::Color color = (v == focused()) ? Rgb32::White : View::frame_color();
+  Rgb32::Color color = v->focused() ? Rgb32::White : View::frame_color();
   _canvas->draw_rect(v->offset(-3, -3, 3, 3), Rgb32::Black);
   _canvas->draw_rect(v->offset(-2, -2, 2, 2), color);
   _canvas->draw_rect(v->offset(-1, -1, 1, 1), Rgb32::Black);
@@ -154,7 +154,7 @@ View_stack::draw_recursive(View const *v, View const *dst, Rect const &rect) con
     {
       Clip_guard g(_canvas, clipped);
       draw_frame(v);
-      v->draw(_canvas, this, _mode, v == focused());
+      v->draw(_canvas, this, _mode);
       draw_label(v);
     }