summaryrefslogtreecommitdiffstats
path: root/6.3+h/0002-dwm-notitle.patch
diff options
context:
space:
mode:
authorJesús <heckyel@hyperbola.info>2022-05-04 10:33:07 +0800
committerJesús <heckyel@hyperbola.info>2022-05-04 10:33:07 +0800
commit4b34604a01a175c1f7a3d5aad26b0954c9177119 (patch)
tree8e06985e56492cb59d68505c62e47ad5a165b781 /6.3+h/0002-dwm-notitle.patch
downloaddwm-patches-4b34604a01a175c1f7a3d5aad26b0954c9177119.tar.lz
dwm-patches-4b34604a01a175c1f7a3d5aad26b0954c9177119.tar.xz
dwm-patches-4b34604a01a175c1f7a3d5aad26b0954c9177119.zip
initial commit
Diffstat (limited to '6.3+h/0002-dwm-notitle.patch')
-rw-r--r--6.3+h/0002-dwm-notitle.patch75
1 files changed, 75 insertions, 0 deletions
diff --git a/6.3+h/0002-dwm-notitle.patch b/6.3+h/0002-dwm-notitle.patch
new file mode 100644
index 0000000..06179fe
--- /dev/null
+++ b/6.3+h/0002-dwm-notitle.patch
@@ -0,0 +1,75 @@
+diff --git a/config.def.h b/config.def.h
+index 86fcc84..6d128d6 100644
+--- a/config.def.h
++++ b/config.def.h
+@@ -108,7 +108,6 @@ static Button buttons[] = {
+ /* click event mask button function argument */
+ { ClkTagBar, MODKEY, Button1, tag, {0} },
+ { ClkTagBar, MODKEY, Button3, toggletag, {0} },
+- { ClkWinTitle, 0, Button2, zoom, {0} },
+ { ClkStatusText, 0, Button2, spawn, {.v = termcmd } },
+ { ClkClientWin, MODKEY, Button1, movemouse, {0} },
+ { ClkClientWin, MODKEY, Button2, togglefloating, {0} },
+@@ -118,4 +117,3 @@ static Button buttons[] = {
+ { ClkTagBar, MODKEY, Button1, tag, {0} },
+ { ClkTagBar, MODKEY, Button3, toggletag, {0} },
+ };
+-
+diff --git a/dwm.c b/dwm.c
+index 3ec050d..23660c6 100644
+--- a/dwm.c
++++ b/dwm.c
+@@ -79,8 +79,8 @@ enum { NetSupported, NetWMName, NetWMState, NetWMCheck,
+ NetWMWindowTypeDialog, NetClientList, NetLast }; /* EWMH atoms */
+ enum { Manager, Xembed, XembedInfo, XLast }; /* Xembed atoms */
+ enum { WMProtocols, WMDelete, WMState, WMTakeFocus, WMLast }; /* default atoms */
+-enum { ClkTagBar, ClkLtSymbol, ClkStatusText, ClkWinTitle,
+- ClkClientWin, ClkRootWin, ClkLast }; /* clicks */
++enum { ClkTagBar, ClkLtSymbol, ClkStatusText, ClkClientWin,
++ ClkRootWin, ClkLast }; /* clicks */
+
+ typedef union {
+ int i;
+@@ -474,10 +474,8 @@ buttonpress(XEvent *e)
+ arg.ui = 1 << i;
+ } else if (ev->x < x + blw)
+ click = ClkLtSymbol;
+- else if (ev->x > selmon->ww - (int)TEXTW(stext) - getsystraywidth())
+- click = ClkStatusText;
+ else
+- click = ClkWinTitle;
++ click = ClkStatusText;
+ } else if ((c = wintoclient(ev->window))) {
+ focus(c);
+ restack(selmon);
+@@ -833,15 +831,8 @@ drawbar(Monitor *m)
+ x = drw_text(drw, x, 0, w, bh, lrpad / 2, m->ltsymbol, 0);
+
+ if ((w = m->ww - tw - stw - x) > bh) {
+- if (m->sel) {
+- drw_setscheme(drw, scheme[m == selmon ? SchemeSel : SchemeNorm]);
+- drw_text(drw, x, 0, w, bh, lrpad / 2, m->sel->name, 0);
+- if (m->sel->isfloating)
+- drw_rect(drw, x + boxs, boxs, boxw, boxw, m->sel->isfixed, 0);
+- } else {
+- drw_setscheme(drw, scheme[SchemeNorm]);
+- drw_rect(drw, x, 0, w, bh, 1, 1);
+- }
++ drw_setscheme(drw, scheme[SchemeNorm]);
++ drw_rect(drw, x, 0, w, bh, 1, 1);
+ }
+ drw_map(drw, m->barwin, 0, 0, m->ww - stw, bh);
+ }
+@@ -1381,11 +1372,8 @@ propertynotify(XEvent *e)
+ drawbars();
+ break;
+ }
+- if (ev->atom == XA_WM_NAME || ev->atom == netatom[NetWMName]) {
++ if (ev->atom == XA_WM_NAME || ev->atom == netatom[NetWMName])
+ updatetitle(c);
+- if (c == c->mon->sel)
+- drawbar(c->mon);
+- }
+ if (ev->atom == netatom[NetWMWindowType])
+ updatewindowtype(c);
+ }