monitor: Assign monitor layout directly by crtc rect

There's no need to repeat what gcc can do alone.

https://gitlab.gnome.org/GNOME/mutter/merge_requests/469
This commit is contained in:
Marco Trevisan (Treviño) 2019-03-05 20:07:47 +01:00 committed by Jonas Ådahl
parent 02812fb988
commit 91aee3d5c4

View File

@ -589,12 +589,7 @@ meta_monitor_normal_derive_layout (MetaMonitor *monitor,
output = meta_monitor_get_main_output (monitor);
crtc = meta_output_get_assigned_crtc (output);
*layout = (MetaRectangle) {
.x = crtc->rect.x,
.y = crtc->rect.y,
.width = crtc->rect.width,
.height = crtc->rect.height
};
*layout = crtc->rect;
}
static gboolean