mirror of
https://github.com/brl/mutter.git
synced 2025-01-08 10:42:33 +00:00
workspace: ensure that workarea data is valid when fetching by monitor num
https://bugzilla.gnome.org/show_bug.cgi?id=788860
This commit is contained in:
parent
c6c777a604
commit
d6e3193c2a
@ -1099,13 +1099,16 @@ meta_workspace_get_work_area_for_monitor (MetaWorkspace *workspace,
|
|||||||
MetaLogicalMonitor *logical_monitor;
|
MetaLogicalMonitor *logical_monitor;
|
||||||
MetaWorkspaceLogicalMonitorData *data;
|
MetaWorkspaceLogicalMonitorData *data;
|
||||||
|
|
||||||
ensure_work_areas_validated (workspace);
|
|
||||||
|
|
||||||
logical_monitor =
|
logical_monitor =
|
||||||
meta_monitor_manager_get_logical_monitor_from_number (monitor_manager,
|
meta_monitor_manager_get_logical_monitor_from_number (monitor_manager,
|
||||||
which_monitor);
|
which_monitor);
|
||||||
|
g_return_if_fail (logical_monitor != NULL);
|
||||||
|
|
||||||
|
ensure_work_areas_validated (workspace);
|
||||||
data = meta_workspace_get_logical_monitor_data (workspace, logical_monitor);
|
data = meta_workspace_get_logical_monitor_data (workspace, logical_monitor);
|
||||||
|
|
||||||
|
g_return_if_fail (data != NULL);
|
||||||
|
|
||||||
*area = data->logical_monitor_work_area;
|
*area = data->logical_monitor_work_area;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user