diff options
| author | Mikael Magnusson <mikachu@comhem.se> | 2008-02-28 20:57:33 +0100 |
|---|---|---|
| committer | Mikael Magnusson <mikachu@comhem.se> | 2008-02-28 20:57:33 +0100 |
| commit | 323df7cbc2052e27d10da334faed93bd3f2ec7a3 (patch) | |
| tree | 6886d545ae32924e299b47f9eac35291911160f3 /openbox/frame.c | |
| parent | 017d9564440d5b8b5cc03ad6c1e17e37d29ec74b (diff) | |
Very inconsequential changes.
Diffstat (limited to 'openbox/frame.c')
| -rw-r--r-- | openbox/frame.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/openbox/frame.c b/openbox/frame.c index 3304f4b5..0b764a4c 100644 --- a/openbox/frame.c +++ b/openbox/frame.c @@ -99,7 +99,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(ob_display, @@ -116,7 +116,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); } @@ -190,7 +190,7 @@ ObFrame *frame_new(ObClient *client) set_theme_statics(self); - return (ObFrame*)self; + return self; } static void set_theme_statics(ObFrame *self) @@ -1154,7 +1154,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, |
