summaryrefslogtreecommitdiff
path: root/openbox/frame.c
diff options
context:
space:
mode:
authorMikael Magnusson <mikachu@comhem.se>2008-02-29 04:21:02 +0100
committerMikael Magnusson <mikachu@comhem.se>2008-02-29 04:21:02 +0100
commit173b9b764887929b7ff5d30b3e33f0602b0afda6 (patch)
tree8681b38cf6e1e4ac7ca4c7d535042263064490d8 /openbox/frame.c
parent9d1bb266ee9e9be374944730f6e737f40393cd04 (diff)
parent835b2de913cddcf545246d88a8a4e5d7d0028f8a (diff)
Merge branch 'backport' into work
Conflicts: openbox/client.c openbox/screen.c
Diffstat (limited to 'openbox/frame.c')
-rw-r--r--openbox/frame.c8
1 files changed, 4 insertions, 4 deletions
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,