[metacity/wip/invisible-borders: 20/25] frames: Fall back to title bar if nothing else matched



commit ee27c50b2216ce02dbf4eab970cee7feb95f988d
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 c31e2e2..bcbddf2 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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]