diff options
author | Thomas Adam <thomas@xteddy.org> | 2018-08-18 23:02:40 +0100 |
---|---|---|
committer | Thomas Adam <thomas@xteddy.org> | 2018-08-18 23:02:40 +0100 |
commit | e811132b055914f1b7b58fa14a56cd6664d34f7a (patch) | |
tree | 8aa94d91f018ec4588a948f601fce0c873bcf5c9 /resize.c | |
parent | 522d751eee82b45dd508951c713ee9eba9de76ae (diff) | |
parent | bd2896b65e8fd205e3207ed70558d9ebfd106909 (diff) | |
download | rtmux-e811132b055914f1b7b58fa14a56cd6664d34f7a.tar.gz rtmux-e811132b055914f1b7b58fa14a56cd6664d34f7a.tar.bz2 rtmux-e811132b055914f1b7b58fa14a56cd6664d34f7a.zip |
Merge branch 'obsd-master'
Diffstat (limited to 'resize.c')
-rw-r--r-- | resize.c | 11 |
1 files changed, 2 insertions, 9 deletions
@@ -36,10 +36,6 @@ * * 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 @@ -79,11 +75,8 @@ recalculate_sizes(void) s->attached++; } } - if (ssx == UINT_MAX || ssy == UINT_MAX) { - s->flags |= SESSION_UNATTACHED; + if (ssx == UINT_MAX || ssy == UINT_MAX) continue; - } - s->flags &= ~SESSION_UNATTACHED; if (lines != 0 && ssy == 0) ssy = lines; @@ -107,7 +100,7 @@ recalculate_sizes(void) ssx = ssy = UINT_MAX; RB_FOREACH(s, sessions, &sessions) { - if (s->flags & SESSION_UNATTACHED) + if (s->attached == 0) continue; if (flag) has = s->curw->window == w; |