summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Kareh <[email protected]>2019-05-23 13:00:18 -0400
committerraveit65 <[email protected]>2019-06-16 18:12:44 +0200
commit5aa10796218606ae93d2fec4692c27d0264c07f9 (patch)
treed7f295dd18e853b4a1ac4bef055100af6b086e30
parentb989f7fbf5fc643e8ec91a96ee4e6d8a3192cf63 (diff)
downloadmarco-5aa10796218606ae93d2fec4692c27d0264c07f9.tar.bz2
marco-5aa10796218606ae93d2fec4692c27d0264c07f9.tar.xz
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
-rw-r--r--src/ui/frames.c5
1 files changed, 4 insertions, 1 deletions
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