From 53ded3774c2db6a058366345233a4886de3e9cd8 Mon Sep 17 00:00:00 2001 From: tavo-wasd Date: Thu, 12 Jan 2023 00:01:31 -0600 Subject: [PATCH] annoying layout indicator, only for monocle layout --- config.def.h | 8 +++----- dwm.c | 5 ++--- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/config.def.h b/config.def.h index 6ee77cd..0673c1d 100644 --- a/config.def.h +++ b/config.def.h @@ -42,12 +42,12 @@ static const Rule rules[] = { static const float mfact = 0.55; /* factor of master area size [0.05..0.95] */ static const int nmaster = 1; /* number of clients in master area */ static const int resizehints = 1; /* 1 means respect size hints in tiled resizals */ -static const int lockfullscreen = 1; /* 1 will force focus on the fullscreen window */ +static const int lockfullscreen = 0; /* 1 will force focus on the fullscreen window */ static const Layout layouts[] = { /* symbol arrange function */ - { "[]=", tile }, /* first entry is default */ - { "><>", NULL }, /* no layout function means floating behavior */ + { "", tile }, /* first entry is default */ + { "", NULL }, /* no layout function means floating behavior */ { "[M]", monocle }, }; @@ -152,8 +152,6 @@ static const Key keys[] = { /* click can be ClkTagBar, ClkLtSymbol, ClkStatusText, ClkWinTitle, ClkClientWin, or ClkRootWin */ static const Button buttons[] = { /* click event mask button function argument */ - { ClkLtSymbol, 0, Button1, setlayout, {0} }, - { ClkLtSymbol, 0, Button3, setlayout, {.v = &layouts[2]} }, { ClkStatusText, 0, Button2, spawn, {.v = termcmd } }, { ClkClientWin, MODKEY, Button1, movemouse, {0} }, { ClkClientWin, MODKEY, Button2, togglefloating, {0} }, diff --git a/dwm.c b/dwm.c index be610fc..62ad7c4 100644 --- a/dwm.c +++ b/dwm.c @@ -73,7 +73,7 @@ enum { NetSupported, NetWMName, NetWMState, NetWMCheck, NetWMFullscreen, NetActiveWindow, NetWMWindowType, NetWMWindowTypeDialog, NetClientList, NetLast }; /* EWMH atoms */ enum { WMProtocols, WMDelete, WMState, WMTakeFocus, WMLast }; /* default atoms */ -enum { ClkTagBar, ClkLtSymbol, ClkStatusText, ClkClientWin, +enum { ClkTagBar, ClkStatusText, ClkClientWin, ClkRootWin, ClkLast }; /* clicks */ typedef union { @@ -542,8 +542,7 @@ buttonpress(XEvent *e) if (i < LENGTH(tags)) { click = ClkTagBar; arg.ui = 1 << i; - } else if (ev->x < x + TEXTW(selmon->ltsymbol)) - click = ClkLtSymbol; + } else click = ClkStatusText; } else if ((c = wintoclient(ev->window))) {