]> Dogcows Code - chaz/openbox/commitdiff
disallow resizing of windows which are shaded
authorDana Jansens <danakj@orodu.net>
Mon, 31 Mar 2003 20:19:59 +0000 (20:19 +0000)
committerDana Jansens <danakj@orodu.net>
Mon, 31 Mar 2003 20:19:59 +0000 (20:19 +0000)
openbox/action.c

index 614b196ad17857fa33bbc181223172ca8e67fe58..a58441b08a754df95821feae2e8a3a1d7d9662e4 100644 (file)
@@ -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;
This page took 0.026738 seconds and 4 git commands to generate.