mirror of
https://github.com/brl/mutter.git
synced 2024-11-21 07:30:42 -05:00
monitor: Only assign suggested positions to valid pointers
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/522>
This commit is contained in:
parent
ab48b6b933
commit
32d7c5fbfb
@ -730,8 +730,11 @@ meta_monitor_normal_get_suggested_position (MetaMonitor *monitor,
|
||||
if (output_info->suggested_x < 0 && output_info->suggested_y < 0)
|
||||
return FALSE;
|
||||
|
||||
*x = output_info->suggested_x;
|
||||
*y = output_info->suggested_y;
|
||||
if (x)
|
||||
*x = output_info->suggested_x;
|
||||
|
||||
if (y)
|
||||
*y = output_info->suggested_y;
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user