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 a8849621c9
commit 40c15f6e2a

View File

@ -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);