openbox/openbox-3.6.1-undecorated_maximized_no_border.patch
Silvan Calarco e4130e1c50 replace requirement for python-xdg0 with python-pyxdg-py3
apply patches [release 3.6.1-3mamba;Mon Apr 01 2024]
2024-04-01 20:26:23 +02:00

23 lines
871 B
Diff

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)