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



commit 40c15f6e2a5fcd66f8b0a96737eaf669da64bb84
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 40d0590..dcc2725 100644
--- a/src/core/window.c
+++ b/src/core/window.c
@@ -7841,7 +7841,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]