applied lolilolicon's floating center patch, further investigation wrt his second issue reported needed
d5c5c52b
1 file(s) · +2 −2
| 632 | 632 | c->h = ev->height; |
|
| 633 | 633 | } |
|
| 634 | 634 | if((c->x + c->w) > m->mx + m->mw && c->isfloating) |
|
| 635 | - | c->x = m->mx + (m->mw / 2 - c->w / 2); /* center in x direction */ |
|
| 635 | + | c->x = m->mx + (m->mw / 2 - WIDTH(c) / 2); /* center in x direction */ |
|
| 636 | 636 | if((c->y + c->h) > m->my + m->mh && c->isfloating) |
|
| 637 | - | c->y = m->my + (m->mh / 2 - c->h / 2); /* center in y direction */ |
|
| 637 | + | c->y = m->my + (m->mh / 2 - HEIGHT(c) / 2); /* center in y direction */ |
|
| 638 | 638 | if((ev->value_mask & (CWX|CWY)) && !(ev->value_mask & (CWWidth|CWHeight))) |
|
| 639 | 639 | configure(c); |
|
| 640 | 640 | if(ISVISIBLE(c)) |