XMoveResizeWindow(ob_display, self->titletop,
ob_rr_theme->grip_width + self->bwidth, 0,
/* width + bwidth*2 - bwidth*2 - grips*2 */
- self->width + ob_rr_theme->grip_width * 2,
+ self->width - ob_rr_theme->grip_width * 2,
self->bwidth);
XMoveResizeWindow(ob_display, self->titletopleft,
0, 0,
XMoveResizeWindow(ob_display, self->topresize,
ob_rr_theme->grip_width + self->bwidth,
0,
- self->width - (ob_rr_theme->grip_width +
- self->bwidth) * 2,
+ self->width - ob_rr_theme->grip_width *2,
ob_rr_theme->paddingy + 1);
- XMoveWindow(ob_display, self->tltresize, 0, 0);
- XMoveWindow(ob_display, self->tllresize, 0, 0);
+ XMoveWindow(ob_display, self->tltresize, self->bwidth, 0);
+ XMoveWindow(ob_display, self->tllresize, self->bwidth, 0);
XMoveWindow(ob_display, self->trtresize,
- self->width - ob_rr_theme->grip_width, 0);
+ self->bwidth + self->width -
+ ob_rr_theme->grip_width, 0);
XMoveWindow(ob_display, self->trrresize,
- self->width - ob_rr_theme->paddingx - 1, 0);
+ self->bwidth + self->width -
+ ob_rr_theme->paddingx - 1, 0);
XMapWindow(ob_display, self->topresize);
XMapWindow(ob_display, self->tltresize);
return self->rightmost;
}
}
+
+ /* there is no resizing maximized windows so make them the titlebar
+ context */
+ return OB_FRAME_CONTEXT_TITLEBAR;
}
if (win == self->window) return OB_FRAME_CONTEXT_FRAME;