diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-03-31 20:19:59 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-03-31 20:19:59 +0000 |
| commit | a048c4302aa7c450fe7a97e69c15029eb5459ab2 (patch) | |
| tree | 9e9f1eb5fd98a80c081f0e10b6c18055201ac2b9 /openbox | |
| parent | ace0beb9157944dcb307b4ea54f63ee82cb33cdd (diff) | |
disallow resizing of windows which are shaded
Diffstat (limited to 'openbox')
| -rw-r--r-- | openbox/action.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/openbox/action.c b/openbox/action.c index 614b196a..a58441b0 100644 --- a/openbox/action.c +++ b/openbox/action.c @@ -301,7 +301,7 @@ void action_resize_relative_horz(union ActionData *data) 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 @@ void action_resize(union ActionData *data) 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; |
