summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJasper St. Pierre <jstpierre@mecheye.net>2011-09-15 15:54:51 -0400
committerAlberts Muktupāvels <alberts.muktupavels@gmail.com>2015-01-20 19:53:22 +0200
commit37e1fa8cddfc9c6aefa2ec1ab02536bdb8176e6a (patch)
tree22285e9833687ed3ae1209f28aa2bc48f94ff016
parentb9a30062f3d4c7384599fba6177381e9ebb778d0 (diff)
downloadmetacity-37e1fa8cddfc9c6aefa2ec1ab02536bdb8176e6a.tar.gz
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
-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 c31e2e2f..bcbddf2e 100644
--- a/src/ui/frames.c
+++ b/src/ui/frames.c
@@ -2883,7 +2883,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