]> Dogcows Code - chaz/openbox/blobdiff - otk/appwidget.cc
various fixes to the otk widgets
[chaz/openbox] / otk / appwidget.cc
index c62a0d924720ae936956d1ab888385f632fa5539..afb86c0bb6a859e564ae9775abdd195a315382f6 100644 (file)
@@ -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.022763 seconds and 4 git commands to generate.