Introduction
Introduction Statistics Contact Development Disclaimer Help
tRemove WIN_REDRAW flag. - st - [fork] customized build of st, the simple termi…
git clone git://src.adamsgaard.dk/st
Log
Files
Refs
README
LICENSE
---
commit 2fdcc5e5f633083eb5e52b201862106a2c547df9
parent ab69ea89b759eb457b1e5314d5345fdeea3dec87
Author: [email protected] <[email protected]>
Date: Sat, 18 Apr 2015 19:33:11 +0200
Remove WIN_REDRAW flag.
WIN_REDRAW flag was not used since introduction of Xdbe
in commit 94771d05886fbdd2422e66b7c0256ab27fa375cb
Diffstat:
M st.c | 16 ++--------------
1 file changed, 2 insertions(+), 14 deletions(-)
---
diff --git a/st.c b/st.c
t@@ -158,8 +158,7 @@ enum escape_state {
enum window_state {
WIN_VISIBLE = 1,
- WIN_REDRAW = 2,
- WIN_FOCUSED = 4
+ WIN_FOCUSED = 2
};
enum selection_type {
t@@ -3739,12 +3738,6 @@ drawregion(int x1, int y1, int x2, int y2) {
void
expose(XEvent *ev) {
- XExposeEvent *e = &ev->xexpose;
-
- if(xw.state & WIN_REDRAW) {
- if(!e->count)
- xw.state &= ~WIN_REDRAW;
- }
redraw();
}
t@@ -3752,12 +3745,7 @@ void
visibility(XEvent *ev) {
XVisibilityEvent *e = &ev->xvisibility;
- if(e->state == VisibilityFullyObscured) {
- xw.state &= ~WIN_VISIBLE;
- } else if(!(xw.state & WIN_VISIBLE)) {
- /* need a full redraw for next Expose, not just a buf copy */
- xw.state |= WIN_VISIBLE | WIN_REDRAW;
- }
+ MODBIT(xw.state, e->state != VisibilityFullyObscured, WIN_VISIBLE);
}
void
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.