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:
parent
73ca0efaeb
commit
90bd02ff4d
@ -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 =
|
||||
|
Loading…
Reference in New Issue
Block a user