constraints: Fix update_onscreen_requirements()

Another missing translation into screen coordinates ...

https://bugzilla.gnome.org/show_bug.cgi?id=736915
This commit is contained in:
Florian Müllner 2014-09-18 16:43:06 +01:00
parent 73ca0efaeb
commit 90bd02ff4d

View File

@ -612,9 +612,14 @@ update_onscreen_requirements (MetaWindow *window,
*/
if (window->frame && window->decorated)
{
MetaRectangle titlebar_rect;
MetaRectangle titlebar_rect, frame_rect;
meta_window_get_titlebar_rect (window, &titlebar_rect);
meta_window_get_frame_rect (window, &frame_rect);
/* translate into screen coordinates */
titlebar_rect.x = frame_rect.x;
titlebar_rect.y = frame_rect.y;
old = window->require_titlebar_visible;
window->require_titlebar_visible =