bluetooth: fix BLE/HID keyboard & mouse pairing, auto-bypass T9 on external keyboard, and show mouse cursor

This commit is contained in:
Luxferre committed 2026-11-03 20:24:54 +02:00
1 parent b9e7c6847b
commit 02ce3ab1f4
67 files changed
+1227 -293

No files matched your search

-14
View File
@@ -1158,10 +1158,8 @@ void
xinit(int cols, int rows)
{
XGCValues gcvalues;
Cursor cursor;
Window parent;
pid_t thispid = getpid();
XColor xmousefg, xmousebg;
xw.scr = XDefaultScreen(xw.dpy);
xw.vis = XDefaultVisual(xw.dpy, xw.scr);
@@ -1222,18 +1220,6 @@ xinit(int cols, int rows)
ximinstantiate, NULL);
}
/* invisible 1x1 cursor for keypad-only hardware */
{
Pixmap blank;
static const char blankdata[1] = {0};
memset(&xmousefg, 0, sizeof(xmousefg));
memset(&xmousebg, 0, sizeof(xmousebg));
blank = XCreateBitmapFromData(xw.dpy, xw.win, blankdata, 1, 1);
cursor = XCreatePixmapCursor(xw.dpy, blank, blank, &xmousefg, &xmousebg, 0, 0);
XFreePixmap(xw.dpy, blank);
XDefineCursor(xw.dpy, xw.win, cursor);
}
xw.xembed = XInternAtom(xw.dpy, "_XEMBED", False);
xw.wmdeletewin = XInternAtom(xw.dpy, "WM_DELETE_WINDOW", False);
xw.netwmname = XInternAtom(xw.dpy, "_NET_WM_NAME", False);