summaryrefslogtreecommitdiffstats
path: root/desktop/openbox/patches/917204_undecorated_maximized_no_border.patch
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/openbox/patches/917204_undecorated_maximized_no_border.patch')
-rw-r--r--desktop/openbox/patches/917204_undecorated_maximized_no_border.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/desktop/openbox/patches/917204_undecorated_maximized_no_border.patch b/desktop/openbox/patches/917204_undecorated_maximized_no_border.patch
new file mode 100644
index 0000000000..915cc1ea9a
--- /dev/null
+++ b/desktop/openbox/patches/917204_undecorated_maximized_no_border.patch
@@ -0,0 +1,22 @@
+Description: Removed top border on undecorated maximized windows
+Author: Valentin Blot <debian-devel@valentinblot.org>
+Origin: other
+Bug-Debian: https://bugs.debian.org/917204
+Forwarded: no
+Last-Update: 2018-12-23
+
+--- a/openbox/frame.c
++++ b/openbox/frame.c
+@@ -585,12 +585,6 @@ void frame_adjust_area(ObFrame *self, gb
+
+ 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 border on the
+- top of the window to let the user still undecorate/unmaximize the
+- window via the client menu. */
+- self->size.top += self->bwidth;
+- }
+
+ if (self->decorations & OB_FRAME_DECOR_HANDLE &&
+ ob_rr_theme->handle_height > 0)