]> Dogcows Code - chaz/openbox/commitdiff
fix frame rendering to match layout fixes
authorDana Jansens <danakj@orodu.net>
Tue, 22 May 2007 17:55:46 +0000 (17:55 +0000)
committerDana Jansens <danakj@orodu.net>
Tue, 22 May 2007 17:55:46 +0000 (17:55 +0000)
openbox/frame.c
openbox/framerender.c

index d5d9b1223a8a63198d114c2c8ba6e58c5816665d..96e93ba0ad1612128bd7e8346b1cf396d97d5bf6 100644 (file)
@@ -1249,6 +1249,10 @@ ObFrameContext frame_context(ObClient *client, Window win, gint x, gint y)
                     return self->rightmost;
             }
         }
+
+        /* there is no resizing maximized windows so make them the titlebar
+           context */
+        return OB_FRAME_CONTEXT_TITLEBAR;
     }
 
     if (win == self->window)            return OB_FRAME_CONTEXT_FRAME;
index 5fdc8a95575c3304ec231393d48ad710701afaae..d841267ebfcfc73bfbcafeddb97a2ad61f8e2996 100644 (file)
@@ -217,7 +217,7 @@ void framerender_frame(ObFrame *self)
         ob_rr_theme->a_clear->surface.parentx = ob_rr_theme->grip_width +
             self->bwidth;
         RrPaint(ob_rr_theme->a_clear, self->topresize,
-                self->width - (ob_rr_theme->grip_width + self->bwidth) * 2,
+                self->width - ob_rr_theme->grip_width * 2,
                 ob_rr_theme->paddingy + 1);
 
         ob_rr_theme->a_clear->surface.parentx = 0;
This page took 0.032875 seconds and 4 git commands to generate.