mirror of
https://github.com/tmux/tmux.git
synced 2024-12-13 01:48:47 +00:00
There is somewhere that WINDOW_HIDDEN is getting set when it shouldn't
be and I can't find it, but the flag itself is a useless optimisation that only applies to automatic-resize windows, so just dispose of it entirely. Fixes problems reported by Nicholas Riley.
This commit is contained in:
parent
9a1b4f9ed3
commit
ef9b2eb566
5
resize.c
5
resize.c
@ -113,11 +113,8 @@ recalculate_sizes(void)
|
|||||||
ssy = s->sy;
|
ssy = s->sy;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (ssx == UINT_MAX || ssy == UINT_MAX) {
|
if (ssx == UINT_MAX || ssy == UINT_MAX)
|
||||||
w->flags |= WINDOW_HIDDEN;
|
|
||||||
continue;
|
continue;
|
||||||
}
|
|
||||||
w->flags &= ~WINDOW_HIDDEN;
|
|
||||||
|
|
||||||
limit = options_get_number(&w->options, "force-width");
|
limit = options_get_number(&w->options, "force-width");
|
||||||
if (limit != 0 && ssx > limit)
|
if (limit != 0 && ssx > limit)
|
||||||
|
5
tmux.h
5
tmux.h
@ -843,9 +843,8 @@ struct window {
|
|||||||
|
|
||||||
int flags;
|
int flags;
|
||||||
#define WINDOW_BELL 0x1
|
#define WINDOW_BELL 0x1
|
||||||
#define WINDOW_HIDDEN 0x2
|
#define WINDOW_ACTIVITY 0x2
|
||||||
#define WINDOW_ACTIVITY 0x4
|
#define WINDOW_REDRAW 0x4
|
||||||
#define WINDOW_REDRAW 0x8
|
|
||||||
|
|
||||||
struct options options;
|
struct options options;
|
||||||
|
|
||||||
|
2
tty.c
2
tty.c
@ -547,7 +547,7 @@ tty_write(void (*cmdfn)(
|
|||||||
|
|
||||||
if (wp->window->flags & WINDOW_REDRAW || wp->flags & PANE_REDRAW)
|
if (wp->window->flags & WINDOW_REDRAW || wp->flags & PANE_REDRAW)
|
||||||
return;
|
return;
|
||||||
if (wp->window->flags & WINDOW_HIDDEN || !window_pane_visible(wp))
|
if (!window_pane_visible(wp))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
for (i = 0; i < ARRAY_LENGTH(&clients); i++) {
|
for (i = 0; i < ARRAY_LENGTH(&clients); i++) {
|
||||||
|
Loading…
Reference in New Issue
Block a user