Change TD on KD

This commit is contained in:
2024-02-24 18:16:26 +05:00
parent 66a7223541
commit b745273428
7 changed files with 13 additions and 11 deletions

8
dwm.c
View File

@@ -255,8 +255,7 @@ static void updatetitle(Client *c);
static void updatewindowtype(Client *c);
static void updatewmhints(Client *c);
static void view(const Arg *arg);
static Client *wintoclient(Window w);
static Monitor *wintomon(Window w);
static Client *wintoclient(Window w);static Monitor *wintomon(Window w);
static int xerror(Display *dpy, XErrorEvent *ee);
static int xerrordummy(Display *dpy, XErrorEvent *ee);
static int xerrorstart(Display *dpy, XErrorEvent *ee);
@@ -2558,6 +2557,11 @@ wintomon(Window w)
int
xerror(Display *dpy, XErrorEvent *ee)
{
int opcode, event, error;
if(XQueryExtension(dpy, "RENDER", &opcode, &event, &error)
|| (ee->request_code == opcode && ee->error_code == BadLength))
return 0;
if (ee->error_code == BadWindow
|| (ee->request_code == X_SetInputFocus && ee->error_code == BadMatch)
|| (ee->request_code == X_PolyText8 && ee->error_code == BadDrawable)