]> Dogcows Code - chaz/openbox/blobdiff - otk/appwidget.cc
dont make wrap a subdir of otk
[chaz/openbox] / otk / appwidget.cc
index 5b1225f758127ef872bfe5bdb975a76f0901b5cb..afb86c0bb6a859e564ae9775abdd195a315382f6 100644 (file)
@@ -15,7 +15,7 @@ extern "C" {
 namespace otk {
 
 AppWidget::AppWidget(Application *app, Direction direction,
-                           Cursor cursor, int bevel_width)
+                     Cursor cursor, int bevel_width)
   : Widget(app, app->getStyle(), direction, cursor, bevel_width),
     _application(app)
 {
@@ -26,12 +26,21 @@ AppWidget::AppWidget(Application *app, Direction direction,
   protocols[0] = Property::atoms.wm_protocols;
   protocols[1] = Property::atoms.wm_delete_window;
   XSetWMProtocols(**display, window(), protocols, 2);
+
+  setStyle(_style);
 }
 
 AppWidget::~AppWidget()
 {
 }
 
+void AppWidget::setStyle(RenderStyle *style)
+{
+  Widget::setStyle(style);
+
+  setTexture(style->titlebarUnfocusBackground());
+}
+
 void AppWidget::show(void)
 {
   Widget::show(true);
This page took 0.022183 seconds and 4 git commands to generate.