rem: h = scr->title_font->height + TITLEBAR_EXTRA_HEIGHT;
add: h = WMFontHeight(scr->title_font) + TITLEBAR_EXTRA_HEIGHT;
context: InteractivePlaceWindow(WWindow *wwin, int *x_ret, int *y_ret,		       unsigned width, unsigned height){    WScreen *scr = wwin->screen_ptr;    Window root = scr->root_win;    int x, y, h = 0;    XEvent event;    KeyCode shiftl, shiftr;    Window junkw;    int junk;        if (XGrabPointer(dpy, root, True, PointerMotionMask | ButtonPressMask,		     GrabModeAsync, GrabModeAsync, None, 		     wCursor[WCUR_DEFAULT], CurrentTime) != Success) {	*x_ret = 0;	*y_ret = 0;	return;    }    if (!WFLAGP(wwin, no_titlebar)) {	h = scr->title_font->height + TITLEBAR_EXTRA_HEIGHT;	height += h;    }    if (!WFLAGP(wwin, no_resizebar)) {	height += RESIZEBAR_HEIGHT;    }    XGrabKeyboard(dpy, root, False, GrabModeAsync, GrabModeAsync, CurrentTime);    XQueryPointer(dpy, root, &junkw, &junkw, &x, &y, &junk, &junk, 		  (unsigned *) &junk);    mapPositionDisplay(wwin, x - width/2, y - h/2, width, height);        drawTransparentFrame(wwin, x - width/2, y - h/2, width, height);        shiftl = XKeysymToKeycode(dpy, XK_Shift_L);    shiftr = XKeysymToKeycode(dpy, XK_Shift_R);    while (1) {	WMMaskEvent(dpy, PointerMotionMask|ButtonPressMask|ExposureMask|KeyPressMask,		   &event);	switch (event.type) {	 case KeyPress:	    if ((event.xkey.keycode == shiftl) 		|| (event.xkey.keycode == shiftr)) {		drawTransparentFrame(wwin,				     x - width/2, y - h/2, width, height);		cyclePositionDisplay(wwin,				     x - width/2, y - h/2, width, height);		drawTransparentFrame(wwin,				     x - width/2, y - h/2, width, height);	    }	    break;	    	 case MotionNotify:	    drawTransparentFrame(wwin, x - width/2, y - h/2, width, height);	    	    x = event.xmotion.x_root;	    y = event.xmotion.y_root;	    	    if (wPreferences.move_display == WDIS_FRAME_CENTER)		moveGeometryDisplayCentered(scr, x, y + (height - h) / 2);	    	    showPosition(wwin, x - width/2, y - h/2);	    	    drawTransparentFrame(wwin, x - width/2, y - h/2, width, height);	    	    break;	    	 case ButtonPress:	    drawTransparentFrame(wwin, x - width/2, y - h/2, width, height);	    XSync(dpy, 0);	    *x_ret = x - width/2;	    *y_ret = y - h/2;	    XUngrabPointer(dpy, CurrentTime);	    XUngrabKeyboard(dpy, CurrentTime);	    /* get rid of the geometry window */	    unmapPositionDisplay(wwin);	    return;	    	 default:	    WMHandleEvent(&event);	    break;	}    }}