| dwm-notitle-6.2.diff - sites - public wiki contents of suckless.org | |
| git clone git://git.suckless.org/sites | |
| Log | |
| Files | |
| Refs | |
| --- | |
| dwm-notitle-6.2.diff (2912B) | |
| --- | |
| 1 From 969dbbc548f16da5d94630e3d54e9c96c5296520 Mon Sep 17 00:00:00 2001 | |
| 2 From: Ryan Kes <[email protected]> | |
| 3 Date: Thu, 28 Mar 2019 14:36:07 +0100 | |
| 4 Subject: [PATCH] dwm-notitle-6.2 | |
| 5 | |
| 6 --- | |
| 7 config.def.h | 1 - | |
| 8 dwm.c | 20 ++++---------------- | |
| 9 2 files changed, 4 insertions(+), 17 deletions(-) | |
| 10 | |
| 11 diff --git a/config.def.h b/config.def.h | |
| 12 index 1c0b587..19330cd 100644 | |
| 13 --- a/config.def.h | |
| 14 +++ b/config.def.h | |
| 15 @@ -102,7 +102,6 @@ static Button buttons[] = { | |
| 16 /* click event mask button functio… | |
| 17 { ClkLtSymbol, 0, Button1, setlayo… | |
| 18 { ClkLtSymbol, 0, Button3, setlayo… | |
| 19 - { ClkWinTitle, 0, Button2, zoom, … | |
| 20 { ClkStatusText, 0, Button2, spawn, … | |
| 21 { ClkClientWin, MODKEY, Button1, movemou… | |
| 22 { ClkClientWin, MODKEY, Button2, togglef… | |
| 23 diff --git a/dwm.c b/dwm.c | |
| 24 index 4465af1..bcf5cb1 100644 | |
| 25 --- a/dwm.c | |
| 26 +++ b/dwm.c | |
| 27 @@ -64,8 +64,8 @@ enum { NetSupported, NetWMName, NetWMState, NetWMCheck, | |
| 28 NetWMFullscreen, NetActiveWindow, NetWMWindowType, | |
| 29 NetWMWindowTypeDialog, NetClientList, NetLast }; /* EWMH atoms */ | |
| 30 enum { WMProtocols, WMDelete, WMState, WMTakeFocus, WMLast }; /* defaul… | |
| 31 -enum { ClkTagBar, ClkLtSymbol, ClkStatusText, ClkWinTitle, | |
| 32 - ClkClientWin, ClkRootWin, ClkLast }; /* clicks */ | |
| 33 +enum { ClkTagBar, ClkLtSymbol, ClkStatusText, ClkClientWin, | |
| 34 + ClkRootWin, ClkLast }; /* clicks */ | |
| 35 | |
| 36 typedef union { | |
| 37 int i; | |
| 38 @@ -439,10 +439,8 @@ buttonpress(XEvent *e) | |
| 39 arg.ui = 1 << i; | |
| 40 } else if (ev->x < x + blw) | |
| 41 click = ClkLtSymbol; | |
| 42 - else if (ev->x > selmon->ww - TEXTW(stext)) | |
| 43 - click = ClkStatusText; | |
| 44 else | |
| 45 - click = ClkWinTitle; | |
| 46 + click = ClkStatusText; | |
| 47 } else if ((c = wintoclient(ev->window))) { | |
| 48 focus(c); | |
| 49 restack(selmon); | |
| 50 @@ -729,15 +727,8 @@ drawbar(Monitor *m) | |
| 51 x = drw_text(drw, x, 0, w, bh, lrpad / 2, m->ltsymbol, 0); | |
| 52 | |
| 53 if ((w = m->ww - sw - x) > bh) { | |
| 54 - if (m->sel) { | |
| 55 - drw_setscheme(drw, scheme[m == selmon ? SchemeS… | |
| 56 - drw_text(drw, x, 0, w, bh, lrpad / 2, m->sel->n… | |
| 57 - if (m->sel->isfloating) | |
| 58 - drw_rect(drw, x + boxs, boxs, boxw, box… | |
| 59 - } else { | |
| 60 drw_setscheme(drw, scheme[SchemeNorm]); | |
| 61 drw_rect(drw, x, 0, w, bh, 1, 1); | |
| 62 - } | |
| 63 } | |
| 64 drw_map(drw, m->barwin, 0, 0, m->ww, bh); | |
| 65 } | |
| 66 @@ -1235,11 +1226,8 @@ propertynotify(XEvent *e) | |
| 67 drawbars(); | |
| 68 break; | |
| 69 } | |
| 70 - if (ev->atom == XA_WM_NAME || ev->atom == netatom[NetWM… | |
| 71 + if (ev->atom == XA_WM_NAME || ev->atom == netatom[NetWM… | |
| 72 updatetitle(c); | |
| 73 - if (c == c->mon->sel) | |
| 74 - drawbar(c->mon); | |
| 75 - } | |
| 76 if (ev->atom == netatom[NetWMWindowType]) | |
| 77 updatewindowtype(c); | |
| 78 } | |
| 79 -- | |
| 80 2.21.0 | |
| 81 |