X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fframe.c;h=25c470489596c8b12a42d3e3d91cfd9c9c0b87df;hb=173b9b764887929b7ff5d30b3e33f0602b0afda6;hp=e8a532cc4feaba18152f14374d072f322b49b72d;hpb=9d1bb266ee9e9be374944730f6e737f40393cd04;p=chaz%2Fopenbox diff --git a/openbox/frame.c b/openbox/frame.c index e8a532cc..25c47048 100644 --- a/openbox/frame.c +++ b/openbox/frame.c @@ -98,7 +98,7 @@ ObFrame *frame_new(ObClient *client) mask = 0; if (visual) { /* client has a 32-bit visual */ - mask |= CWColormap | CWBackPixel | CWBorderPixel; + mask = CWColormap | CWBackPixel | CWBorderPixel; /* create a colormap with the visual */ self->colormap = attrib.colormap = XCreateColormap(obt_display, obt_root(ob_screen), @@ -114,7 +114,7 @@ ObFrame *frame_new(ObClient *client) mask = 0; if (visual) { /* client has a 32-bit visual */ - mask |= CWColormap | CWBackPixel | CWBorderPixel; + mask = CWColormap | CWBackPixel | CWBorderPixel; attrib.colormap = RrColormap(ob_rr_inst); } @@ -188,7 +188,7 @@ ObFrame *frame_new(ObClient *client) set_theme_statics(self); - return (ObFrame*)self; + return self; } static void set_theme_statics(ObFrame *self) @@ -1150,7 +1150,7 @@ static void layout_title(ObFrame *self) self->label_width = self->width - (ob_rr_theme->paddingx + 1) * 2; self->leftmost = self->rightmost = OB_FRAME_CONTEXT_NONE; - /* figure out what's being show, find each element's position, and the + /* figure out what's being shown, find each element's position, and the width of the label do the ones before the label, then after the label,