From f1d66989a633a781d7c12a799da72ae19278143b Mon Sep 17 00:00:00 2001 From: Alex Kotov Date: Fri, 19 Nov 2021 16:14:13 +0500 Subject: [PATCH] Do not handle window title clicks --- polytreewm.1 | 12 +++++------- src/config.def.h | 2 +- src/dwm.c | 3 +-- src/dwm/handlers.c | 5 ++--- 4 files changed, 9 insertions(+), 13 deletions(-) diff --git a/polytreewm.1 b/polytreewm.1 index 56f978f..3986e34 100644 --- a/polytreewm.1 +++ b/polytreewm.1 @@ -20,13 +20,11 @@ layout applied. Windows are grouped by tags. Each window can be tagged with one or multiple tags. Selecting certain tags displays all windows with these tags. .P -Each screen contains a small status bar which displays all available tags, the -layout, the title of the focused window. A floating window is indicated with an -empty square and a maximised floating window is indicated with a filled square -before the windows title. The selected tags are indicated with a different -color. The tags of the focused window are indicated with a filled square in the -top left corner. The tags which are applied to one or more windows are -indicated with an empty square in the top left corner. +Each screen contains a small status bar which displays all available tags and +the layout. The selected tags are indicated with a different color. The tags of +the focused window are indicated with a filled square in the top left corner. +The tags which are applied to one or more windows are indicated with an empty +square in the top left corner. .P PolytreeWM draws a small border around windows to indicate the focus state. .SH OPTIONS diff --git a/src/config.def.h b/src/config.def.h index 98eb2e0..d6535a2 100644 --- a/src/config.def.h +++ b/src/config.def.h @@ -107,7 +107,7 @@ static Key keys[] = { }; /* button definitions */ -/* click can be ClkTagBar, ClkLtSymbol, ClkWinTitle, ClkClientWin, or ClkRootWin */ +/* click can be ClkTagBar, ClkLtSymbol, ClkClientWin, or ClkRootWin */ static Button buttons[] = { /* click event mask button function argument */ diff --git a/src/dwm.c b/src/dwm.c index 6d3a13c..c7ef55b 100644 --- a/src/dwm.c +++ b/src/dwm.c @@ -74,8 +74,7 @@ enum { CurNormal, CurResize, CurMove, CurLast }; /* cursor */ enum { SchemeNorm, SchemeSel }; /* color schemes */ -enum { ClkTagBar, ClkLtSymbol, ClkWinTitle, - ClkClientWin, ClkRootWin, ClkLast }; /* clicks */ +enum { ClkTagBar, ClkLtSymbol, ClkClientWin, ClkRootWin, ClkLast }; /* clicks */ typedef struct Monitor Monitor; typedef struct Client Client; diff --git a/src/dwm/handlers.c b/src/dwm/handlers.c index 96a9d21..eae9877 100644 --- a/src/dwm/handlers.c +++ b/src/dwm/handlers.c @@ -31,10 +31,9 @@ on_button_press(XEvent *e) if (i < TAGS_COUNT) { click = ClkTagBar; arg.ui = 1 << i; - } else if (ev->x < x + blw) + } else if (ev->x < x + blw) { click = ClkLtSymbol; - else - click = ClkWinTitle; + } } else if ((c = wintoclient(ev->window))) { if (settings_get_focus_on_wheel() || (ev->button != Button4 && ev->button != Button5)) focus(c);