]> Dogcows Code - chaz/openbox/commitdiff
dont map the tl/tr invisible grips when the grip decors are turned off
authorDana Jansens <danakj@orodu.net>
Tue, 5 Aug 2003 18:58:18 +0000 (18:58 +0000)
committerDana Jansens <danakj@orodu.net>
Tue, 5 Aug 2003 18:58:18 +0000 (18:58 +0000)
openbox/frame.c

index bdae34e3df04deed7c7576c024d2656dc0c31b4b..4ecc7b6101e4d2971158111b5f344d626a24f5fe 100644 (file)
@@ -81,8 +81,6 @@ ObFrame *frame_new()
     XMapWindow(ob_display, self->lgrip);
     XMapWindow(ob_display, self->rgrip);
     XMapWindow(ob_display, self->label);
-    XMapWindow(ob_display, self->tlresize);
-    XMapWindow(ob_display, self->trresize);
 
     /* set colors/appearance/sizes for stuff that doesn't change */
     XSetWindowBorder(ob_display, self->window, ob_rr_theme->b_color->pixel);
@@ -271,10 +269,16 @@ void frame_adjust_area(ObFrame *self, gboolean moved,
                                   self->width, ob_rr_theme->title_height);
                 XMapWindow(ob_display, self->title);
 
-                XMoveWindow(ob_display, self->tlresize, 0, 0);
-                XMoveWindow(ob_display, self->trresize,
-                            self->width - ob_rr_theme->grip_width, 0);
-
+                if (self->decorations & OB_FRAME_DECOR_GRIPS) {
+                    XMoveWindow(ob_display, self->tlresize, 0, 0);
+                    XMoveWindow(ob_display, self->trresize,
+                                self->width - ob_rr_theme->grip_width, 0);
+                    XMapWindow(ob_display, self->tlresize);
+                    XMapWindow(ob_display, self->trresize);
+                } else {
+                    XUnmapWindow(ob_display, self->tlresize);
+                    XUnmapWindow(ob_display, self->trresize);
+                }
             } else
                 XUnmapWindow(ob_display, self->title);
         }
This page took 0.028524 seconds and 4 git commands to generate.