all repos — openbox @ 119c48fc6c90da5ebb2fc59425bbdb30f4576e47

openbox fork - make it a bit more like ryudo

you can't resize fully maxed windows
Dana Jansens danakj@orodu.net
commit

119c48fc6c90da5ebb2fc59425bbdb30f4576e47

parent

44be67844a5568e8b1ad87327b0815f8667151c0

1 files changed, 4 insertions(+), 4 deletions(-)

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

@@ -1685,6 +1685,10 @@ self->functions &= ~OB_CLIENT_FUNC_CLOSE; */

} } + /* can't resize maximized windows */ + if (self->max_horz && self->max_vert) + self->functions &=~ OB_CLIENT_FUNC_RESIZE; + if (!(self->functions & OB_CLIENT_FUNC_SHADE)) self->decorations &= ~OB_FRAME_DECOR_SHADE; if (!(self->functions & OB_CLIENT_FUNC_ICONIFY))

@@ -1699,10 +1703,6 @@ (self->functions & OB_CLIENT_FUNC_RESIZE))) {

self->functions &= ~OB_CLIENT_FUNC_MAXIMIZE; self->decorations &= ~OB_FRAME_DECOR_MAXIMIZE; } - - /* kill the handle on fully maxed windows */ - if (self->max_vert && self->max_horz) - self->decorations &= ~(OB_FRAME_DECOR_HANDLE | OB_FRAME_DECOR_GRIPS); /* If there are no decorations to remove, don't allow the user to try toggle the state */