rem: WMPoint pt;  #ifdef XINERAMA WMRect rect;  rect = wGetRectForHead(scr, wGetHeadForPointerLocation(scr));  pt.x = rect.pos.x + (rect.size.width - width)/2; pt.y = rect.pos.y + (rect.size.height - height)/2; #else pt.x = (scr->scr_width - width) / 2; pt.y = (scr->scr_height - height) / 2; #endif  return pt;
add: return wGetPointToCenterRectInHead(scr, wGetHeadForPointerLocation(scr), width, height);
context: static WMPoint getCenter(WScreen *scr, int width, int height){    WMPoint pt;    #ifdef XINERAMA    WMRect rect;        rect = wGetRectForHead(scr, wGetHeadForPointerLocation(scr));    pt.x = rect.pos.x + (rect.size.width - width)/2;    pt.y = rect.pos.y + (rect.size.height - height)/2;#else    pt.x = (scr->scr_width - width) / 2;    pt.y = (scr->scr_height - height) / 2;	#endif        return pt;}