From eb42942545acd4cb12691ab4ae1c7202e95e85a6 Mon Sep 17 00:00:00 2001 From: Quentin Carbonneaux Date: Wed, 28 Feb 2018 04:55:13 -0500 Subject: it looks like that fixes it! --- main.c | 3 +-- x11.c | 3 +-- 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); -- cgit v1.2.3