[mutter] constraints: Fix update_onscreen_requirements()



commit 90bd02ff4d698012869ee63404258b05a889975a
Author: Florian Müllner <fmuellner gnome org>
Date:   Thu Sep 18 16:43:06 2014 +0100

    constraints: Fix update_onscreen_requirements()
    
    Another missing translation into screen coordinates ...
    
    https://bugzilla.gnome.org/show_bug.cgi?id=736915

 src/core/constraints.c |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/src/core/constraints.c b/src/core/constraints.c
index 42204bc..d0ac4fa 100644
--- a/src/core/constraints.c
+++ b/src/core/constraints.c
@@ -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 =


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]