[mutter] frames: Fall back to title bar if nothing else matched
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] frames: Fall back to title bar if nothing else matched
- Date: Fri, 16 Sep 2011 22:16:56 +0000 (UTC)
commit 5f1c3de29a4a46c8339184ee17aa00824cc55ff5
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Thu Sep 15 15:54:51 2011 -0400
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
src/ui/frames.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/ui/frames.c b/src/ui/frames.c
index c26a634..e964eae 100644
--- a/src/ui/frames.c
+++ b/src/ui/frames.c
@@ -2787,7 +2787,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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]