[metacity/wip/gtk-theme: 19/41] frames: Fall back to title bar if nothing else matched



commit b0babfd2a8844ca565ba817bc31b9de947457117
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 f36ff28..bdd6fbe 100644
--- a/src/ui/frames.c
+++ b/src/ui/frames.c
@@ -2943,7 +2943,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]