Should the host UI issue an RPC like
unity.desktop.work_area.set 0
Unity/X11 will explode with a NULL pointer dereference, because of
an incorrect assumption that there would be at least 1 parameter.
Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
screenInfo->height = rootHeight;
}
+ if ((uint32)numScreens != numWorkAreas) {
+ Warning("Mismatch between host-specified work areas and available "
+ "screens. Request dropped.\n");
+ free(screenInfo);
+ return FALSE;
+ }
+
/*
* New and improved wild'n'crazy scheme to map the host's work area
* coordinates to a collection of struts.