X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=engines%2Fopenbox%2Fobengine.c;h=f98bb36c526b91a0e839e71cf31669e30138510e;hb=71c8b0b7b2cf2fa79ac4c81b7756f2b230f2de7a;hp=1ef502ae372a3be7c4b09bf0c163f2d365efa543;hpb=5b323a936403eb7a31fa4b6d50a32e864152c5de;p=chaz%2Fopenbox diff --git a/engines/openbox/obengine.c b/engines/openbox/obengine.c index 1ef502ae..f98bb36c 100644 --- a/engines/openbox/obengine.c +++ b/engines/openbox/obengine.c @@ -14,7 +14,8 @@ #include #define PLATE_EVENTMASK (SubstructureRedirectMask | ButtonPressMask) -#define FRAME_EVENTMASK (EnterWindowMask | LeaveWindowMask) +#define FRAME_EVENTMASK (EnterWindowMask | LeaveWindowMask | \ + ButtonPressMask | ButtonReleaseMask) #define ELEMENT_EVENTMASK (ButtonPressMask | ButtonReleaseMask | \ ButtonMotionMask | ExposureMask) @@ -35,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; @@ -494,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; @@ -529,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); @@ -538,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); @@ -711,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;