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
|
Windows are grouped by tags. Each window can be tagged with one or multiple
|
||||||
tags. Selecting certain tags displays all windows with these tags.
|
tags. Selecting certain tags displays all windows with these tags.
|
||||||
.P
|
.P
|
||||||
Each screen contains a small status bar which displays all available tags, the
|
Each screen contains a small status bar which displays all available tags and
|
||||||
layout, the title of the focused window. A floating window is indicated with an
|
the layout. The selected tags are indicated with a different color. The tags of
|
||||||
empty square and a maximised floating window is indicated with a filled square
|
the focused window are indicated with a filled square in the top left corner.
|
||||||
before the windows title. The selected tags are indicated with a different
|
The tags which are applied to one or more windows are indicated with an empty
|
||||||
color. The tags of the focused window are indicated with a filled square in the
|
square in the top left corner.
|
||||||
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
|
.P
|
||||||
PolytreeWM draws a small border around windows to indicate the focus state.
|
PolytreeWM draws a small border around windows to indicate the focus state.
|
||||||
.SH OPTIONS
|
.SH OPTIONS
|
||||||
|
|
|
@ -107,7 +107,7 @@ static Key keys[] = {
|
||||||
};
|
};
|
||||||
|
|
||||||
/* button definitions */
|
/* button definitions */
|
||||||
/* click can be ClkTagBar, ClkLtSymbol, ClkWinTitle, ClkClientWin, or ClkRootWin */
|
/* click can be ClkTagBar, ClkLtSymbol, ClkClientWin, or ClkRootWin */
|
||||||
|
|
||||||
static Button buttons[] = {
|
static Button buttons[] = {
|
||||||
/* click event mask button function argument */
|
/* click event mask button function argument */
|
||||||
|
|
|
@ -74,8 +74,7 @@
|
||||||
|
|
||||||
enum { CurNormal, CurResize, CurMove, CurLast }; /* cursor */
|
enum { CurNormal, CurResize, CurMove, CurLast }; /* cursor */
|
||||||
enum { SchemeNorm, SchemeSel }; /* color schemes */
|
enum { SchemeNorm, SchemeSel }; /* color schemes */
|
||||||
enum { ClkTagBar, ClkLtSymbol, ClkWinTitle,
|
enum { ClkTagBar, ClkLtSymbol, ClkClientWin, ClkRootWin, ClkLast }; /* clicks */
|
||||||
ClkClientWin, ClkRootWin, ClkLast }; /* clicks */
|
|
||||||
|
|
||||||
typedef struct Monitor Monitor;
|
typedef struct Monitor Monitor;
|
||||||
typedef struct Client Client;
|
typedef struct Client Client;
|
||||||
|
|
|
@ -31,10 +31,9 @@ on_button_press(XEvent *e)
|
||||||
if (i < TAGS_COUNT) {
|
if (i < TAGS_COUNT) {
|
||||||
click = ClkTagBar;
|
click = ClkTagBar;
|
||||||
arg.ui = 1 << i;
|
arg.ui = 1 << i;
|
||||||
} else if (ev->x < x + blw)
|
} else if (ev->x < x + blw) {
|
||||||
click = ClkLtSymbol;
|
click = ClkLtSymbol;
|
||||||
else
|
}
|
||||||
click = ClkWinTitle;
|
|
||||||
} else if ((c = wintoclient(ev->window))) {
|
} else if ((c = wintoclient(ev->window))) {
|
||||||
if (settings_get_focus_on_wheel() || (ev->button != Button4 && ev->button != Button5))
|
if (settings_get_focus_on_wheel() || (ev->button != Button4 && ev->button != Button5))
|
||||||
focus(c);
|
focus(c);
|
||||||
|
|
Loading…
Add table
Reference in a new issue