all repos — openbox @ a048c4302aa7c450fe7a97e69c15029eb5459ab2

openbox fork - make it a bit more like ryudo

disallow resizing of windows which are shaded
Dana Jansens danakj@orodu.net
commit

a048c4302aa7c450fe7a97e69c15029eb5459ab2

parent

ace0beb9157944dcb307b4ea54f63ee82cb33cdd

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

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

@@ -301,7 +301,7 @@

void action_resize_relative_vert(union ActionData *data) { Client *c = data->relative.c; - if (c) + if (c && !c->shaded) client_configure(c, Corner_TopLeft, c->area.x, c->area.y, c->area.width, c->area.height + data->relative.delta, TRUE, TRUE);

@@ -632,10 +632,8 @@ Client *c = data->resize.c;

int w = data->resize.x; int h = data->resize.y; - if (!c || !client_normal(c)) return; + if (!c || c->shaded || !client_normal(c)) return; - /* XXX window snapping/struts */ - dispatch_resize(c, &w, &h, data->resize.corner); w -= c->frame->size.left + c->frame->size.right;