]> Dogcows Code - chaz/openbox/blobdiff - openbox/frame.c
Maximized undecored windows have incorrect top border. (Bug 5996)
[chaz/openbox] / openbox / frame.c
index 24d3eb535a93ae3f3eaa428298df54585ffefa65..3dbcf1265d6088acb5358d4877f072efb3ade53a 100644 (file)
@@ -387,11 +387,10 @@ void frame_adjust_area(ObFrame *self, gboolean moved,
         if (self->decorations & OB_FRAME_DECOR_TITLEBAR)
             self->size.top += ob_rr_theme->title_height + self->bwidth;
         else if (self->max_horz && self->max_vert) {
-            /* A maximized and undecorated window needs a small border on the
+            /* A maximized and undecorated window needs a border on the
                top of the window to let the user still undecorate/unmaximize the
                window via the client menu. */
-            /* XXX This size should probably be a theme option. */
-            self->size.top += 1;
+            self->size.top += self->bwidth;
         }
 
         if (self->decorations & OB_FRAME_DECOR_HANDLE &&
This page took 0.020488 seconds and 4 git commands to generate.