]> Dogcows Code - chaz/openbox/blobdiff - engines/openbox/obengine.c
create a generic tokenizer/sectionizer for the config file. pass off the token to...
[chaz/openbox] / engines / openbox / obengine.c
index 64e5123198e661771324d6a770c77169452edbea..f98bb36c526b91a0e839e71cf31669e30138510e 100644 (file)
@@ -36,6 +36,7 @@ color_rgb *ob_s_titlebut_unfocused_color;
 int ob_s_winfont_height;
 int ob_s_winfont_shadow;
 int ob_s_winfont_shadow_offset;
+int ob_s_winfont_shadow_tint;
 ObFont *ob_s_winfont;
 /* style settings - masks */
 pixmap_mask *ob_s_max_set_mask;
@@ -495,7 +496,7 @@ void frame_adjust_area(ObFrame *self, gboolean moved, gboolean resized)
         self->icon_x = -1;
         self->desk_x = -1;
         self->shade_x = -1;
-        self->icon_x = -1;
+        self->iconify_x = -1;
         self->label_x = -1;
         self->max_x = -1;
         self->close_x = -1;
@@ -530,7 +531,7 @@ void frame_adjust_area(ObFrame *self, gboolean moved, gboolean resized)
                 self->bwidth;
             XMapWindow(ob_display, self->handle);
 
-            if (self->a_focused_handle->surface.data.planar.grad ==
+            if (ob_a_focused_grip->surface.data.planar.grad ==
                 Background_ParentRelative)
                 RECT_SET(self->a_focused_handle->area, 0, 0,
                          self->width, ob_s_handle_height);
@@ -539,7 +540,7 @@ void frame_adjust_area(ObFrame *self, gboolean moved, gboolean resized)
                          GRIP_WIDTH + self->bwidth, 0,
                          self->width - (GRIP_WIDTH + self->bwidth) * 2,
                          ob_s_handle_height);
-            if (self->a_unfocused_handle->surface.data.planar.grad ==
+            if (ob_a_unfocused_grip->surface.data.planar.grad ==
                 Background_ParentRelative)
                 RECT_SET(self->a_unfocused_handle->area, 0, 0,
                          self->width, ob_s_handle_height);
@@ -712,10 +713,8 @@ static void layout_title(ObFrame *self)
 
     n = d = i = l = m = c = s = FALSE;
 
-    if (!config_get("titlebar.layout", Config_String, &layout)) {
-        layout.string = "NDSLIMC";
-        config_set("titlebar.layout", Config_String, layout);
-    }
+    if (!config_get("titlebar.layout", Config_String, &layout))
+        g_assert_not_reached();
 
     /* figure out whats being shown, and the width of the label */
     self->label_width = self->width - (ob_s_bevel + 1) * 2;
This page took 0.021535 seconds and 4 git commands to generate.