cursor-renderer/native: Fix compilation warning

Previous initialization triggered Wmissing-braces in Clang.

https://gitlab.gnome.org/GNOME/mutter/merge_requests/731
This commit is contained in:
Albert Vaca Cintora 2019-08-16 09:34:12 +00:00 committed by Albert Vaca
parent b7ef8796b2
commit 4d8190972d

View File

@ -398,7 +398,7 @@ update_hw_cursor (MetaCursorRendererNative *native,
if (cursor_sprite)
rect = meta_cursor_renderer_calculate_rect (renderer, cursor_sprite);
else
rect = (ClutterRect) { 0 };
rect = (ClutterRect) CLUTTER_RECT_INIT_ZERO;
logical_monitors =
meta_monitor_manager_get_logical_monitors (monitor_manager);