When using vesa X was getting into a sort of race condition because we were
not calling XSync after the X{Grab,Ungrab}Server calls. This was causing X
to appear to hang. Really since we aren't setting anything (only reading values)
I don't see a reason to keep these calls. Hence remove them and fix the bug.
Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
unsigned int num;
int i;
- XGrabServer(resInfoX->display);
-
xrrRes = XRRGetScreenResources(resInfoX->display, resInfoX->rootWindow);
if (xrrRes) {
XRRFreeScreenResources(xrrRes);
}
- XUngrabServer(resInfoX->display);
-
if (resInfoX->canUseRandR12) {
return TRUE;
}