Do not handle window title clicks

This commit is contained in:
Alex Kotov 2021-11-19 16:14:13 +05:00
parent ee6b6d00b7
commit f1d66989a6
Signed by: kotovalexarian
GPG key ID: 553C0EBBEB5D5F08
4 changed files with 9 additions and 13 deletions

View file

@ -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

View file

@ -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 */

View file

@ -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;

View file

@ -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);