1
0
Fork 0

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
This commit is contained in:
Jonas Ådahl 2018-02-06 15:42:27 +08:00
parent 563c5b0612
commit 787bb4316d

View file

@ -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);