Change TD on KD
This commit is contained in:
8
dwm.c
8
dwm.c
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user