Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
spectrwm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
33d4117
)
Honour correctly "disable_border" in max_stack
author
Yuri D'Elia
<yuri.delia@eurac.edu>
Thu, 20 Mar 2014 16:20:48 +0000
(17:20 +0100)
committer
Reginald Kennedy
<rk@rejii.com>
Tue, 7 Oct 2014 16:56:20 +0000
(
00:56
+0800)
spectrwm.c
patch
|
blob
|
history
diff --git
a/spectrwm.c
b/spectrwm.c
index
5fc8877
..
e84dfb7
100644
(file)
--- a/
spectrwm.c
+++ b/
spectrwm.c
@@
-4790,7
+4790,7
@@
stack_master(struct workspace *ws, struct swm_geometry *g, int rot, bool flip)
win_g.y += last_h + 2 * border_width + tile_gap;
if (disable_border && !(bar_enabled && ws->bar_enabled) &&
win_g.y += last_h + 2 * border_width + tile_gap;
if (disable_border && !(bar_enabled && ws->bar_enabled) &&
- winno == 1){
+ winno == 1) {
bordered = false;
win_g.w += 2 * border_width;
win_g.h += 2 * border_width;
bordered = false;
win_g.w += 2 * border_width;
win_g.h += 2 * border_width;
@@
-5003,12
+5003,13
@@
max_stack(struct workspace *ws, struct swm_geometry *g)
if (X(w) != gg.x || Y(w) != gg.y || WIDTH(w) != gg.w ||
HEIGHT(w) != gg.h) {
w->g = gg;
if (X(w) != gg.x || Y(w) != gg.y || WIDTH(w) != gg.w ||
HEIGHT(w) != gg.h) {
w->g = gg;
- if (bar_enabled && ws->bar_enabled){
- w->bordered = true;
- } else {
+
+ if (disable_border && !(bar_enabled && ws->bar_enabled)) {
w->bordered = false;
WIDTH(w) += 2 * border_width;
HEIGHT(w) += 2 * border_width;
w->bordered = false;
WIDTH(w) += 2 * border_width;
HEIGHT(w) += 2 * border_width;
+ } else {
+ w->bordered = true;
}
update_window(w);
}
update_window(w);