Do not handle window title clicks
This commit is contained in:
parent
ee6b6d00b7
commit
f1d66989a6
4 changed files with 9 additions and 13 deletions
12
polytreewm.1
12
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
|
||||
|
|
|
@ -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 */
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue