[mutter] Fix meta_window_titlebar_is_onscreen() for titlebar-less windows



commit 202e6bd6545d2325f5f0e0bd298ed9f7d114d589
Author: Owen W. Taylor <otaylor fishsoup net>
Date:   Wed Mar 5 19:40:09 2014 -0500

    Fix meta_window_titlebar_is_onscreen() for titlebar-less windows
    
    Make the code correspond to the comment - the titlebar can't be
    offscreen if there's no titlebar.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=723580

 src/core/window.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/core/window.c b/src/core/window.c
index c65d7df..2593f27 100644
--- a/src/core/window.c
+++ b/src/core/window.c
@@ -9005,7 +9005,7 @@ meta_window_titlebar_is_onscreen (MetaWindow *window)
 
   /* Titlebar can't be offscreen if there is no titlebar... */
   if (!window->frame)
-    return FALSE;
+    return TRUE;
 
   /* Get the rectangle corresponding to the titlebar */
   meta_window_get_frame_rect (window, &titlebar_rect);


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