Fix MINIMALBORDER on region focus cycling.

Fix quirk ordering in man page.
This commit is contained in:
Reginald Kennedy 2014-10-10 15:04:12 +08:00
parent 734f4a1b0e
commit 978e4b1b00
2 changed files with 12 additions and 2 deletions

View file

@ -1047,11 +1047,11 @@ Remove border to allow window to use full region size.
.It FOCUSPREV
On exit force focus on previously focused application not previous
application in the stack.
.It MINIMALBORDER
Remove border when window is unfocused and floating.
.It NOFOCUSCYCLE
Remove from normal focus cycle (focus_prev or focus_next). The window can
still be focused using search_win.
.It MINIMALBORDER
Remove border when window is unfocused and floating.
.It NOFOCUSONMAP
Don't change focus to the window when it first appears on the screen.
Has no effect when

View file

@ -3655,6 +3655,16 @@ focus_win(struct ws_win *win)
&cfw->s->c[(MAXIMIZED(cfw) ?
SWM_S_COLOR_UNFOCUS_MAXIMIZED :
SWM_S_COLOR_UNFOCUS)].pixel);
/* Update border width */
if (cfw->bordered &&
(cfw->quirks & SWM_Q_MINIMALBORDER) &&
FLOATING(cfw)) {
cfw->bordered = 0;
X(cfw) += border_width;
Y(cfw) += border_width;
update_window(cfw);
}
} else {
unfocus_win(cfw);
}