mirror of https://github.com/0intro/wmii
Don't 'segfault randomly at resizing windows'.
This commit is contained in:
parent
61db117898
commit
8abfb9d66d
|
@ -454,11 +454,11 @@ resize_colframe(Frame *f, XRectangle *r) {
|
|||
|
||||
dx = a->rect.x - r->x;
|
||||
dw = maxx - r_east(&a->rect);
|
||||
if(dx) {
|
||||
if(al) {
|
||||
al->rect.width -= dx;
|
||||
arrange_column(al, False);
|
||||
}
|
||||
if(dw) {
|
||||
if(ar) {
|
||||
ar->rect.width -= dw;
|
||||
arrange_column(ar, False);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue