mirror of
https://github.com/brl/mutter.git
synced 2024-11-21 23:50:41 -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,7 +730,10 @@ meta_monitor_normal_get_suggested_position (MetaMonitor *monitor,
|
|||||||
if (output_info->suggested_x < 0 && output_info->suggested_y < 0)
|
if (output_info->suggested_x < 0 && output_info->suggested_y < 0)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
|
if (x)
|
||||||
*x = output_info->suggested_x;
|
*x = output_info->suggested_x;
|
||||||
|
|
||||||
|
if (y)
|
||||||
*y = output_info->suggested_y;
|
*y = output_info->suggested_y;
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
Loading…
Reference in New Issue
Block a user