all repos — openbox @ 62c311ba92fe5c187cc70151eb719a2fdf3efce4

openbox fork - make it a bit more like ryudo

better ordering so you can unmaximize maximized windows.. but you cant resize them
Dana Jansens danakj@orodu.net
commit

62c311ba92fe5c187cc70151eb719a2fdf3efce4

parent

119c48fc6c90da5ebb2fc59425bbdb30f4576e47

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

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

@@ -1685,10 +1685,6 @@ 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))

@@ -1702,6 +1698,15 @@ (self->functions & OB_CLIENT_FUNC_MOVE) &&

(self->functions & OB_CLIENT_FUNC_RESIZE))) { self->functions &= ~OB_CLIENT_FUNC_MAXIMIZE; self->decorations &= ~OB_FRAME_DECOR_MAXIMIZE; + } + + if (self->max_horz && self->max_vert) { + /* also can't resize maximized windows. + do this after checking for resize to let you maximize */ + self->functions &=~ OB_CLIENT_FUNC_RESIZE; + + /* kill the handle on fully maxed windows */ + self->decorations &= ~(OB_FRAME_DECOR_HANDLE | OB_FRAME_DECOR_GRIPS); } /* If there are no decorations to remove, don't allow the user to try