This commit is contained in:
Denis Grelich 2007-02-07 18:32:57 +01:00
commit 88c123d1b4
2 changed files with 6 additions and 3 deletions

3
draw.c
View File

@ -58,7 +58,8 @@ loadfont(Blitz *blitz, BlitzFont *font) {
BLITZ_FONT);
free(font->fontstr);
font->fontstr = ixp_estrdup(BLITZ_FONT);
return loadfont(blitz, font);
loadfont(blitz, font);
return;
}
font->ascent = font->xfont->ascent;
font->descent = font->xfont->descent;

View File

@ -330,8 +330,10 @@ do_mouse_resize(Client *c, BlitzAlign align) {
snap = floating ? screen->rect.height / 66 : 0;
cur = cursor[CurResize];
if(!floating && (align == CENTER))
return do_managed_move(c);
if(!floating && (align == CENTER)) {
do_managed_move(c);
return;
}
XQueryPointer(blz.dpy, c->framewin, &dummy, &dummy, &i, &i, &pt_x, &pt_y, &di);
rx = (float)pt_x / frect.width;