]> Dogcows Code - chaz/openbox/blobdiff - openbox/frame.c
leave things how we found them !
[chaz/openbox] / openbox / frame.c
index 0256f6808a632aabc0ba7060c778297d26080c3b..3059bc49204739317545dc326e5b3fa540ad767e 100644 (file)
@@ -421,6 +421,8 @@ void frame_adjust_area(ObFrame *self, gboolean moved,
                 } else
                     XUnmapWindow(ob_display, self->titlebottom);
             } else {
+                XUnmapWindow(ob_display, self->titlebottom);
+
                 XUnmapWindow(ob_display, self->titletop);
                 XUnmapWindow(ob_display, self->titletopleft);
                 XUnmapWindow(ob_display, self->titletopright);
@@ -578,9 +580,22 @@ void frame_adjust_area(ObFrame *self, gboolean moved,
                         XUnmapWindow(ob_display, self->lgriptop);
                         XUnmapWindow(ob_display, self->rgriptop);
                     }
-                } else
+                } else {
+                    XUnmapWindow(ob_display, self->handleleft);
+                    XUnmapWindow(ob_display, self->handleright);
+                    XUnmapWindow(ob_display, self->lgriptop);
+                    XUnmapWindow(ob_display, self->rgriptop);
+
                     XUnmapWindow(ob_display, self->handletop);
+                }
             } else {
+                XUnmapWindow(ob_display, self->handleleft);
+                XUnmapWindow(ob_display, self->handleright);
+                XUnmapWindow(ob_display, self->lgriptop);
+                XUnmapWindow(ob_display, self->rgriptop);
+
+                XUnmapWindow(ob_display, self->handletop);
+
                 XUnmapWindow(ob_display, self->handlebottom);
                 XUnmapWindow(ob_display, self->lgripleft);
                 XUnmapWindow(ob_display, self->rgripright);
@@ -614,10 +629,14 @@ void frame_adjust_area(ObFrame *self, gboolean moved,
                     XUnmapWindow(ob_display, self->lgrip);
                     XUnmapWindow(ob_display, self->rgrip);
                 }
-            } else
+            } else {
+                XUnmapWindow(ob_display, self->lgrip);
+                XUnmapWindow(ob_display, self->rgrip);
+
                 XUnmapWindow(ob_display, self->handle);
+            }
 
-            if (self->bwidth && !self->max_horz) {
+            if (self->bwidth && self->leftb) {
                 XMoveResizeWindow(ob_display, self->left,
                                   0,
                                   self->bwidth + ob_rr_theme->grip_width,
@@ -625,6 +644,12 @@ void frame_adjust_area(ObFrame *self, gboolean moved,
                                   self->client->area.height +
                                   self->size.top + self->size.bottom -
                                   ob_rr_theme->grip_width * 2);
+
+                XMapWindow(ob_display, self->left);
+            } else
+                XUnmapWindow(ob_display, self->left);
+
+            if (self->bwidth && self->rightb) {
                 XMoveResizeWindow(ob_display, self->right,
                                   self->client->area.width +
                                   self->cbwidth_x * 2 + self->bwidth,
@@ -634,12 +659,9 @@ void frame_adjust_area(ObFrame *self, gboolean moved,
                                   self->size.top + self->size.bottom -
                                   ob_rr_theme->grip_width * 2);
 
-                XMapWindow(ob_display, self->left);
                 XMapWindow(ob_display, self->right);
-            } else {
-                XUnmapWindow(ob_display, self->left);
+            } else
                 XUnmapWindow(ob_display, self->right);
-            }
 
             /* move and resize the inner border window which contains the plate
              */
@@ -1439,8 +1461,8 @@ static gboolean frame_animate_iconify(gpointer p)
         /* start where the frame is supposed to be */
         x = self->area.x;
         y = self->area.y;
-        w = self->area.width - self->bwidth * 2;
-        h = self->area.height - self->bwidth * 2;
+        w = self->area.width;
+        h = self->area.height;
     } else {
         /* start at the icon */
         x = iconx;
@@ -1493,8 +1515,7 @@ void frame_end_iconify_animation(ObFrame *self)
 
     XMoveResizeWindow(ob_display, self->window,
                       self->area.x, self->area.y,
-                      self->area.width - self->bwidth * 2,
-                      self->area.height - self->bwidth * 2);
+                      self->area.width, self->area.height);
     XFlush(ob_display);
 }
 
This page took 0.023185 seconds and 4 git commands to generate.