all repos — openbox @ c94341602ea8ec1fcded5e736c957cc98e45cfef

openbox fork - make it a bit more like ryudo

dont map the tl/tr invisible grips when the grip decors are turned off
Dana Jansens danakj@orodu.net
commit

c94341602ea8ec1fcded5e736c957cc98e45cfef

parent

08f1f213f101d092dc712297709d855d77fab93f

1 files changed, 10 insertions(+), 6 deletions(-)

jump to
M openbox/frame.copenbox/frame.c

@@ -81,8 +81,6 @@ XMapWindow(ob_display, self->plate);

XMapWindow(ob_display, self->lgrip); XMapWindow(ob_display, self->rgrip); XMapWindow(ob_display, self->label); - XMapWindow(ob_display, self->tlresize); - XMapWindow(ob_display, self->trresize); /* set colors/appearance/sizes for stuff that doesn't change */ XSetWindowBorder(ob_display, self->window, ob_rr_theme->b_color->pixel);

@@ -271,10 +269,16 @@ -self->bwidth, -self->bwidth,

self->width, ob_rr_theme->title_height); XMapWindow(ob_display, self->title); - XMoveWindow(ob_display, self->tlresize, 0, 0); - XMoveWindow(ob_display, self->trresize, - self->width - ob_rr_theme->grip_width, 0); - + if (self->decorations & OB_FRAME_DECOR_GRIPS) { + XMoveWindow(ob_display, self->tlresize, 0, 0); + XMoveWindow(ob_display, self->trresize, + self->width - ob_rr_theme->grip_width, 0); + XMapWindow(ob_display, self->tlresize); + XMapWindow(ob_display, self->trresize); + } else { + XUnmapWindow(ob_display, self->tlresize); + XUnmapWindow(ob_display, self->trresize); + } } else XUnmapWindow(ob_display, self->title); }