[mutter] x11/window: Minor cleanup



commit 787bb4316dab0b830ad0b226f31cecbb7e6e96cf
Author: Jonas Ã…dahl <jadahl gmail com>
Date:   Tue Feb 6 15:42:27 2018 +0800

    x11/window: Minor cleanup
    
    Limit the scope of the 'monitor_rect' variable and break up a long line.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=790207

 src/x11/window-x11.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/src/x11/window-x11.c b/src/x11/window-x11.c
index ac304e3fa..792528825 100644
--- a/src/x11/window-x11.c
+++ b/src/x11/window-x11.c
@@ -2182,7 +2182,7 @@ meta_window_move_resize_request (MetaWindow *window,
 
   if (flags & (META_MOVE_RESIZE_MOVE_ACTION | META_MOVE_RESIZE_RESIZE_ACTION))
     {
-      MetaRectangle rect, monitor_rect;
+      MetaRectangle rect;
 
       rect.x = x;
       rect.y = y;
@@ -2191,6 +2191,8 @@ meta_window_move_resize_request (MetaWindow *window,
 
       if (window->monitor)
         {
+          MetaRectangle monitor_rect;
+
           meta_display_get_monitor_geometry (window->display,
                                              window->monitor->number,
                                              &monitor_rect);


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