mirror of
https://github.com/vale981/spectrwm
synced 2025-03-04 17:31:40 -05:00
Fix MINIMALBORDER on region focus cycling.
Fix quirk ordering in man page.
This commit is contained in:
parent
734f4a1b0e
commit
978e4b1b00
2 changed files with 12 additions and 2 deletions
|
@ -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
|
||||
|
|
10
spectrwm.c
10
spectrwm.c
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue