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
This commit is contained in:
Owen W. Taylor 2014-03-05 19:40:09 -05:00
parent fd41ab93da
commit 202e6bd654

View File

@ -9005,7 +9005,7 @@ meta_window_titlebar_is_onscreen (MetaWindow *window)
/* Titlebar can't be offscreen if there is no titlebar... */ /* Titlebar can't be offscreen if there is no titlebar... */
if (!window->frame) if (!window->frame)
return FALSE; return TRUE;
/* Get the rectangle corresponding to the titlebar */ /* Get the rectangle corresponding to the titlebar */
meta_window_get_frame_rect (window, &titlebar_rect); meta_window_get_frame_rect (window, &titlebar_rect);