diff options
| author | noname@inventati.org <noname@inventati.org> | 2015-04-18 19:33:11 +0200 |
|---|---|---|
| committer | Roberto E. Vargas Caballero <k0ga@shike2.com> | 2015-04-21 07:49:07 +0200 |
| commit | 2fdcc5e5f633083eb5e52b201862106a2c547df9 (patch) | |
| tree | b88524de88a5b85656da51511faf2112bec762af | |
| parent | ab69ea89b759eb457b1e5314d5345fdeea3dec87 (diff) | |
| download | st-2fdcc5e5f633083eb5e52b201862106a2c547df9.tar.gz st-2fdcc5e5f633083eb5e52b201862106a2c547df9.zip | |
Remove WIN_REDRAW flag.
WIN_REDRAW flag was not used since introduction of Xdbe
in commit 94771d05886fbdd2422e66b7c0256ab27fa375cb
| -rw-r--r-- | st.c | 16 |
1 files changed, 2 insertions, 14 deletions
| @@ -158,8 +158,7 @@ enum escape_state { | |||
| 158 | 158 | ||
| 159 | enum window_state { | 159 | enum window_state { |
| 160 | WIN_VISIBLE = 1, | 160 | WIN_VISIBLE = 1, |
| 161 | WIN_REDRAW = 2, | 161 | WIN_FOCUSED = 2 |
| 162 | WIN_FOCUSED = 4 | ||
| 163 | }; | 162 | }; |
| 164 | 163 | ||
| 165 | enum selection_type { | 164 | enum selection_type { |
| @@ -3739,12 +3738,6 @@ drawregion(int x1, int y1, int x2, int y2) { | |||
| 3739 | 3738 | ||
| 3740 | void | 3739 | void |
| 3741 | expose(XEvent *ev) { | 3740 | expose(XEvent *ev) { |
| 3742 | XExposeEvent *e = &ev->xexpose; | ||
| 3743 | |||
| 3744 | if(xw.state & WIN_REDRAW) { | ||
| 3745 | if(!e->count) | ||
| 3746 | xw.state &= ~WIN_REDRAW; | ||
| 3747 | } | ||
| 3748 | redraw(); | 3741 | redraw(); |
| 3749 | } | 3742 | } |
| 3750 | 3743 | ||
| @@ -3752,12 +3745,7 @@ void | |||
| 3752 | visibility(XEvent *ev) { | 3745 | visibility(XEvent *ev) { |
| 3753 | XVisibilityEvent *e = &ev->xvisibility; | 3746 | XVisibilityEvent *e = &ev->xvisibility; |
| 3754 | 3747 | ||
| 3755 | if(e->state == VisibilityFullyObscured) { | 3748 | MODBIT(xw.state, e->state != VisibilityFullyObscured, WIN_VISIBLE); |
| 3756 | xw.state &= ~WIN_VISIBLE; | ||
| 3757 | } else if(!(xw.state & WIN_VISIBLE)) { | ||
| 3758 | /* need a full redraw for next Expose, not just a buf copy */ | ||
| 3759 | xw.state |= WIN_VISIBLE | WIN_REDRAW; | ||
| 3760 | } | ||
| 3761 | } | 3749 | } |
| 3762 | 3750 | ||
| 3763 | void | 3751 | void |
