Blame SOURCES/0001-constraints-Fix-titlebars-going-off-the-bottom.patch

f73620
From 2fd734c349ab00f2f460af97f7c383678407f620 Mon Sep 17 00:00:00 2001
f73620
From: =?UTF-8?q?Florian=20M=C3=BCllner?= <fmuellner@gnome.org>
f73620
Date: Wed, 16 Jan 2019 01:09:26 +0100
f73620
Subject: [PATCH] constraints: Fix titlebars going off the bottom
f73620
f73620
The "current" rect includes the frame, so in order to keep the
f73620
titlebar on screen, window movement must be restricted to at
f73620
most (height - titlebar_height) past the work area bottom.
f73620
f73620
https://gitlab.gnome.org/GNOME/mutter/merge_requests/391
f73620
---
f73620
 src/core/constraints.c | 4 ++--
f73620
 1 file changed, 2 insertions(+), 2 deletions(-)
f73620
f73620
diff --git a/src/core/constraints.c b/src/core/constraints.c
f73620
index 3b6203d6b..92b146ce3 100644
f73620
--- a/src/core/constraints.c
f73620
+++ b/src/core/constraints.c
f73620
@@ -1570,7 +1570,7 @@ constrain_titlebar_visible (MetaWindow         *window,
f73620
       MetaFrameBorders borders;
f73620
       meta_frame_calc_borders (window->frame, &borders);
f73620
 
f73620
-      bottom_amount = info->current.height + borders.visible.bottom;
f73620
+      bottom_amount = info->current.height - borders.visible.top;
f73620
       vert_amount_onscreen = borders.visible.top;
f73620
     }
f73620
   else
f73620
@@ -1649,7 +1649,7 @@ constrain_partially_onscreen (MetaWindow         *window,
f73620
       MetaFrameBorders borders;
f73620
       meta_frame_calc_borders (window->frame, &borders);
f73620
 
f73620
-      bottom_amount = info->current.height + borders.visible.bottom;
f73620
+      bottom_amount = info->current.height - borders.visible.top;
f73620
       vert_amount_onscreen = borders.visible.top;
f73620
     }
f73620
   else
f73620
-- 
f73620
2.20.1
f73620