diff --git a/config.def.h b/config.def.h index 218797d..04f666b 100644 --- a/config.def.h +++ b/config.def.h @@ -51,7 +51,7 @@ static const Rule rules[] = { { "thunderbird", NULL, NULL, 1 << 2, 0, -1 }, { "KeePassXC", NULL, NULL, 1 << 2, 0, -1 }, // ----- 4 ----- - { "TelegramDesktop", NULL, NULL, 1 << 3, 0, -1 }, + { "KotatogramDesktop", NULL, NULL, 1 << 3, 0, -1 }, { "discord", NULL, NULL, 1 << 3, 0, -1 }, // ----- 5 ----- { "Steam", NULL, NULL, 1 << 4, 0, -1 }, diff --git a/config.h b/config.h index 8353bcd..04f666b 100644 --- a/config.h +++ b/config.h @@ -51,7 +51,7 @@ static const Rule rules[] = { { "thunderbird", NULL, NULL, 1 << 2, 0, -1 }, { "KeePassXC", NULL, NULL, 1 << 2, 0, -1 }, // ----- 4 ----- - { "TelegramDesktop", NULL, NULL, 1 << 3, 0, -1 }, + { "KotatogramDesktop", NULL, NULL, 1 << 3, 0, -1 }, { "discord", NULL, NULL, 1 << 3, 0, -1 }, // ----- 5 ----- { "Steam", NULL, NULL, 1 << 4, 0, -1 }, @@ -129,7 +129,6 @@ static const Key keys[] = { { SUPERKEY, XK_b, togglebar, {.i = 1} }, { SUPERKEY|ShiftMask, XK_b, togglebar, {.i = 2} }, { ALTKEY, XK_Tab, focusstack, {.i = +1 } }, -/* { SUPERKEY, XK_k, focusstack, {.i = -1 } }, */ { SUPERKEY, XK_i, incnmaster, {.i = +1 } }, { SUPERKEY, XK_d, incnmaster, {.i = -1 } }, { SUPERKEY, XK_h, setmfact, {.f = -0.05} }, @@ -141,13 +140,12 @@ static const Key keys[] = { { SUPERKEY, XK_m, setlayout, {.v = &layouts[3]} }, { SUPERKEY|ShiftMask, XK_g, setlayout, {.v = &layouts[4]} }, { SUPERKEY, XK_g, setlayout, {.v = &layouts[0]} }, -/* { SUPERKEY, XK_space, setlayout, {0} }, */ { SUPERKEY|ShiftMask, XK_space, togglefloating, {0} }, - { SUPERKEY, XK_comma, focusmon, {.i = -1 } }, - { SUPERKEY, XK_period, focusmon, {.i = +1 } }, - { SUPERKEY|ShiftMask, XK_comma, tagmon, {.i = -1 } }, - { SUPERKEY|ShiftMask, XK_period, tagmon, {.i = +1 } }, - { SUPERKEY|ShiftMask, XK_equal, setgaps, {.i = 0 } }, +// { SUPERKEY, XK_comma, focusmon, {.i = -1 } }, +// { SUPERKEY, XK_period, focusmon, {.i = +1 } }, +// { SUPERKEY|ShiftMask, XK_comma, tagmon, {.i = -1 } }, +// { SUPERKEY|ShiftMask, XK_period, tagmon, {.i = +1 } }, +// { SUPERKEY|ShiftMask, XK_equal, setgaps, {.i = 0 } }, { SUPERKEY|ShiftMask, XK_t, togglealwaysontop, {0} }, { SUPERKEY|ShiftMask, XK_f, togglefullscr, {0} }, { SUPERKEY, XK_F5, xrdb, {.v = NULL } }, diff --git a/drw.o b/drw.o index 8cf20fe..f4ff652 100644 Binary files a/drw.o and b/drw.o differ diff --git a/dwm b/dwm index 2358bb6..6c8c196 100755 Binary files a/dwm and b/dwm differ diff --git a/dwm.c b/dwm.c index b1d793d..6d05335 100644 --- a/dwm.c +++ b/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) diff --git a/dwm.o b/dwm.o index 4333835..737335e 100644 Binary files a/dwm.o and b/dwm.o differ diff --git a/util.o b/util.o index 551e000..2f58578 100644 Binary files a/util.o and b/util.o differ