mirror of
https://github.com/brl/mutter.git
synced 2024-11-28 19:10:43 -05:00
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:
parent
563c5b0612
commit
787bb4316d
@ -2182,7 +2182,7 @@ meta_window_move_resize_request (MetaWindow *window,
|
|||||||
|
|
||||||
if (flags & (META_MOVE_RESIZE_MOVE_ACTION | META_MOVE_RESIZE_RESIZE_ACTION))
|
if (flags & (META_MOVE_RESIZE_MOVE_ACTION | META_MOVE_RESIZE_RESIZE_ACTION))
|
||||||
{
|
{
|
||||||
MetaRectangle rect, monitor_rect;
|
MetaRectangle rect;
|
||||||
|
|
||||||
rect.x = x;
|
rect.x = x;
|
||||||
rect.y = y;
|
rect.y = y;
|
||||||
@ -2191,6 +2191,8 @@ meta_window_move_resize_request (MetaWindow *window,
|
|||||||
|
|
||||||
if (window->monitor)
|
if (window->monitor)
|
||||||
{
|
{
|
||||||
|
MetaRectangle monitor_rect;
|
||||||
|
|
||||||
meta_display_get_monitor_geometry (window->display,
|
meta_display_get_monitor_geometry (window->display,
|
||||||
window->monitor->number,
|
window->monitor->number,
|
||||||
&monitor_rect);
|
&monitor_rect);
|
||||||
|
Loading…
Reference in New Issue
Block a user