diff options
| author | Quentin Carbonneaux | 2018-02-28 04:55:13 -0500 |
|---|---|---|
| committer | Quentin Carbonneaux | 2018-02-28 04:55:13 -0500 |
| commit | eb42942545acd4cb12691ab4ae1c7202e95e85a6 (patch) | |
| tree | b9381e89de626e28afa0d4ef44b9d2ed822c8bf1 | |
| parent | c74accb563e16d1d00ae86398f481d38a878bfaa (diff) | |
it looks like that fixes it!debug
| -rw-r--r-- | main.c | 3 | ||||
| -rw-r--r-- | x11.c | 3 |
2 files changed, 2 insertions, 4 deletions
@@ -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; } @@ -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); |
