summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQuentin Carbonneaux2018-02-28 04:55:13 -0500
committerQuentin Carbonneaux2018-02-28 04:55:13 -0500
commiteb42942545acd4cb12691ab4ae1c7202e95e85a6 (patch)
treeb9381e89de626e28afa0d4ef44b9d2ed822c8bf1
parentc74accb563e16d1d00ae86398f481d38a878bfaa (diff)
it looks like that fixes it!debug
-rw-r--r--main.c3
-rw-r--r--x11.c3
2 files changed, 2 insertions, 4 deletions
diff --git a/main.c b/main.c
index 6e91996..fc22a42 100644
--- a/main.c
+++ b/main.c
@@ -55,9 +55,8 @@ redraw()
assert(needsredraw);
if (old != curwin && old)
old->dirty = 1;
- //ev_log("redrawing!\n");
+ ev_log("redraw!\n");
win_redraw_frame(curwin, mode == 'i');
- //ev_msleep(150);
old = curwin;
needsredraw = 0;
}
diff --git a/x11.c b/x11.c
index 87b2837..0e4bfaa 100644
--- a/x11.c
+++ b/x11.c
@@ -60,9 +60,8 @@ init()
/* create the main window */
win = XCreateSimpleWindow(d, root, 0, 0, Width, Height, 0, 0,
WhitePixel(d, screen));
- swa.backing_store = WhenMapped;
swa.bit_gravity = NorthWestGravity;
- XChangeWindowAttributes(d, win, CWBackingStore|CWBitGravity, &swa);
+ XChangeWindowAttributes(d, win, CWBitGravity, &swa);
XStoreName(d, win, "ED");
XSelectInput(d, win, StructureNotifyMask|ButtonPressMask|ButtonReleaseMask|Button1MotionMask|KeyPressMask|ExposureMask|FocusChangeMask);