From 787bb4316dab0b830ad0b226f31cecbb7e6e96cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Tue, 6 Feb 2018 15:42:27 +0800 Subject: [PATCH] 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);