Here’s how the function looks after my debugging modifications:
MetaLogicalMonitor *
meta_monitor_manager_get_logical_monitor_at (MetaMonitorManager *manager,
float x,
float y)
{
GList *l;
g_message ("[MUTTER DEBUG] Checking logical monitors for point (%f,
%f)", x, y);
for (l = manager->logical_monitors; l; l = l->next)
{
MetaLogicalMonitor *logical_monitor = l->data;
MtkRectangle *rect = &logical_monitor->rect;
g_message ("[MUTTER DEBUG] Monitor: x=%d y=%d width=%d height=%d",
rect->x, rect->y, rect->width, rect->height);
if (mtk_rectangle_contains_pointf (rect, x, y))
return logical_monitor;
}
return NULL;
}
** Patch added: "working_workaround.patch"
https://bugs.launchpad.net/ubuntu/+source/mutter/+bug/2117277/+attachment/5893531/+files/working_workaround.patch
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2117277
Title:
gnome-shell crash on unplugging external monitor –
meta_window_get_work_area_for_logical_monitor assertion
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/mutter/+bug/2117277/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs