From 5aa10796218606ae93d2fec4692c27d0264c07f9 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(-) (limited to 'src') diff --git a/src/ui/frames.c b/src/ui/frames.c index 57b13bd9..ce3e3f5b 100644 --- a/src/ui/frames.c +++ b/src/ui/frames.c @@ -2979,7 +2979,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