rem: WMScreen *screen = rPtr->view->screen;
context: static void paintRuler(Ruler * rPtr){    WMScreen *screen = rPtr->view->screen;    if (!rPtr->drawBuffer || !rPtr->view->flags.realized)        return;    if (rPtr->flags.redraw)        drawRulerOnPixmap(rPtr);    XCopyArea(rPtr->view->screen->display, rPtr->drawBuffer,      rPtr->view->window, rPtr->bg, 0, 0, rPtr->view->size.width, 40,          0, 0);}