=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/resize.c,v retrieving revision 1.25 retrieving revision 1.26 diff -c -r1.25 -r1.26 *** src/usr.bin/tmux/resize.c 2017/10/16 19:30:53 1.25 --- src/usr.bin/tmux/resize.c 2018/08/18 20:08:52 1.26 *************** *** 1,4 **** ! /* $OpenBSD: resize.c,v 1.25 2017/10/16 19:30:53 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott --- 1,4 ---- ! /* $OpenBSD: resize.c,v 1.26 2018/08/18 20:08:52 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott *************** *** 36,45 **** * * This is quite inefficient - better/additional data structures are needed * to make it better. - * - * As a side effect, this function updates the SESSION_UNATTACHED flag. This - * flag is necessary to make sure unattached sessions do not limit the size of - * windows that are attached both to them and to other (attached) sessions. */ void --- 36,41 ---- *************** *** 79,89 **** s->attached++; } } ! if (ssx == UINT_MAX || ssy == UINT_MAX) { ! s->flags |= SESSION_UNATTACHED; continue; - } - s->flags &= ~SESSION_UNATTACHED; if (lines != 0 && ssy == 0) ssy = lines; --- 75,82 ---- s->attached++; } } ! if (ssx == UINT_MAX || ssy == UINT_MAX) continue; if (lines != 0 && ssy == 0) ssy = lines; *************** *** 107,113 **** ssx = ssy = UINT_MAX; RB_FOREACH(s, sessions, &sessions) { ! if (s->flags & SESSION_UNATTACHED) continue; if (flag) has = s->curw->window == w; --- 100,106 ---- ssx = ssy = UINT_MAX; RB_FOREACH(s, sessions, &sessions) { ! if (s->attached == 0) continue; if (flag) has = s->curw->window == w;