示例#1
0
static Bool uxa_change_window_attributes(WindowPtr pWin, unsigned long mask)
{
	Bool ret;

	if (!uxa_prepare_access_window(pWin))
		return FALSE;
	ret = fbChangeWindowAttributes(pWin, mask);
	uxa_finish_access_window(pWin);
	return ret;
}
示例#2
0
static Bool uxa_change_window_attributes(WindowPtr pWin, unsigned long mask)
{
	Bool ret;
	Bool need_access = !!(mask & (CWBackPixmap | CWBorderPixmap));

	if (need_access)
	{
	    if (!uxa_prepare_access_window(pWin))
		return FALSE;
	}
	ret = fbChangeWindowAttributes(pWin, mask);
	if (need_access)
	    uxa_finish_access_window(pWin);
	return ret;
}