]> git.mdlowis.com Git - projs/tide.git/commitdiff
fixed the keyboard disconnect bug for real this time. MapNotify and MappingNotify...
authorMichael D. Lowis <mike.lowis@gentex.com>
Thu, 31 Oct 2019 16:52:58 +0000 (12:52 -0400)
committerMichael D. Lowis <mike.lowis@gentex.com>
Thu, 31 Oct 2019 16:52:58 +0000 (12:52 -0400)
src/lib/x11_gc.c

index 4fdb37a3bc2925de69eb69a68f457e4adc1ada1b..baf8029ae5b649307198f1c2d0aacee3ad7ac62c 100644 (file)
@@ -27,9 +27,6 @@ void x11_resize(XConf* x, XEvent* e)
 void x11_mapnotify(XConf* x, XEvent* e)
 {
     telem_send("XMAPNOTIFY(0x%x)\n", e->xmap.window);
-    XFreePixmap(x->display, x->pixmap);
-    x->pixmap = XCreatePixmap(x->display, x->self, x->width, x->height, x->depth);
-    XftDrawChange(x->xft, x->pixmap);
     XWarpPointer(x->display, None, x->self, 0, 0, x->width, x->height, x->width/2, x->height/2);
 }
 
@@ -49,7 +46,7 @@ void x11_init_gc(XConf* x)
     x->eventfns[FocusIn] = xfocus;
     x->eventfns[FocusOut] = xfocus;
     x->eventfns[ConfigureNotify] = x11_resize;
-    x->eventfns[MappingNotify] = x11_mapnotify;
+    x->eventfns[MapNotify] = x11_mapnotify;
 }
 
 void x11_centerwin(XConf* x)