[mutter] window: Fix meta_window_get_client_area_rect



commit 54f8b5d69aa9fec1b831fc99c4c9fcf585fbe27b
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Thu Feb 27 10:32:19 2014 -0500

    window: Fix meta_window_get_client_area_rect
    
    The shaded logic here was backwards.

 src/core/window.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/core/window.c b/src/core/window.c
index 0a2bbf0..c65d7df 100644
--- a/src/core/window.c
+++ b/src/core/window.c
@@ -5858,9 +5858,9 @@ meta_window_get_client_area_rect (const MetaWindow      *window,
 
   rect->width = window->rect.width;
   if (window->shaded)
-    rect->height = window->rect.height;
-  else
     rect->height = 0;
+  else
+    rect->height = window->rect.height;
 }
 
 const char*


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