From 12fe28bb1eaa53b8673d7f08c3168f3af7291de8 Mon Sep 17 00:00:00 2001 From: Victor Kareh Date: Thu, 23 May 2019 13:00:18 -0400 Subject: frames: Fall back to title bar if nothing else matched The condition got removed in eeb2efe01001fef7655b2ba95ca1456f7fe9214b but that had a side effect of adding a couple of rows of dead pixels so add it back. https://bugzilla.gnome.org/show_bug.cgi?id=658069 upstream commit: https://gitlab.gnome.org/GNOME/metacity/commit/37e1fa8c --- src/ui/frames.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/ui/frames.c b/src/ui/frames.c index 502ff523..1f6723ea 100644 --- a/src/ui/frames.c +++ b/src/ui/frames.c @@ -2977,7 +2977,10 @@ get_control (MetaFrames *frames, return META_FRAME_CONTROL_RESIZE_E; } - return META_FRAME_CONTROL_NONE; + if (y >= fgeom.borders.total.top) + return META_FRAME_CONTROL_NONE; + else + return META_FRAME_CONTROL_TITLE; } void -- cgit v1.2.1