mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-03-11 05:34:21 -04:00
fix: excrescent border in grid layout
This commit is contained in:
parent
c3253af75d
commit
dfb59d12c2
2 changed files with 1 additions and 24 deletions
|
|
@ -23,10 +23,6 @@ void grid(Monitor *m) {
|
||||||
if (c->mon != m)
|
if (c->mon != m)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
c->bw = m->visible_tiling_clients == 1 && no_border_when_single &&
|
|
||||||
smartgaps
|
|
||||||
? 0
|
|
||||||
: borderpx;
|
|
||||||
if (VISIBLEON(c, m) && !c->isunglobal &&
|
if (VISIBLEON(c, m) && !c->isunglobal &&
|
||||||
((m->isoverview && !client_is_x11_popup(c)) || ISTILED(c))) {
|
((m->isoverview && !client_is_x11_popup(c)) || ISTILED(c))) {
|
||||||
cw = (m->w.width - 2 * target_gappo) * single_width_ratio;
|
cw = (m->w.width - 2 * target_gappo) * single_width_ratio;
|
||||||
|
|
@ -49,10 +45,6 @@ void grid(Monitor *m) {
|
||||||
if (c->mon != m)
|
if (c->mon != m)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
c->bw = m->visible_tiling_clients == 1 && no_border_when_single &&
|
|
||||||
smartgaps
|
|
||||||
? 0
|
|
||||||
: borderpx;
|
|
||||||
if (VISIBLEON(c, m) && !c->isunglobal &&
|
if (VISIBLEON(c, m) && !c->isunglobal &&
|
||||||
((m->isoverview && !client_is_x11_popup(c)) || ISTILED(c))) {
|
((m->isoverview && !client_is_x11_popup(c)) || ISTILED(c))) {
|
||||||
if (i == 0) {
|
if (i == 0) {
|
||||||
|
|
@ -99,10 +91,7 @@ void grid(Monitor *m) {
|
||||||
|
|
||||||
if (c->mon != m)
|
if (c->mon != m)
|
||||||
continue;
|
continue;
|
||||||
c->bw =
|
|
||||||
m->visible_tiling_clients == 1 && no_border_when_single && smartgaps
|
|
||||||
? 0
|
|
||||||
: borderpx;
|
|
||||||
if (VISIBLEON(c, m) && !c->isunglobal &&
|
if (VISIBLEON(c, m) && !c->isunglobal &&
|
||||||
((m->isoverview && !client_is_x11_popup(c)) || ISTILED(c))) {
|
((m->isoverview && !client_is_x11_popup(c)) || ISTILED(c))) {
|
||||||
cx = m->w.x + (i % cols) * (cw + target_gappi);
|
cx = m->w.x + (i % cols) * (cw + target_gappi);
|
||||||
|
|
|
||||||
|
|
@ -364,10 +364,6 @@ void vertical_grid(Monitor *m) {
|
||||||
if (c->mon != m)
|
if (c->mon != m)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
c->bw = m->visible_tiling_clients == 1 && no_border_when_single &&
|
|
||||||
smartgaps
|
|
||||||
? 0
|
|
||||||
: borderpx;
|
|
||||||
if (VISIBLEON(c, m) && !c->isunglobal &&
|
if (VISIBLEON(c, m) && !c->isunglobal &&
|
||||||
((m->isoverview && !client_is_x11_popup(c)) || ISTILED(c))) {
|
((m->isoverview && !client_is_x11_popup(c)) || ISTILED(c))) {
|
||||||
ch = (m->w.height - 2 * target_gappo) * single_height_ratio;
|
ch = (m->w.height - 2 * target_gappo) * single_height_ratio;
|
||||||
|
|
@ -391,10 +387,6 @@ void vertical_grid(Monitor *m) {
|
||||||
if (c->mon != m)
|
if (c->mon != m)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
c->bw = m->visible_tiling_clients == 1 && no_border_when_single &&
|
|
||||||
smartgaps
|
|
||||||
? 0
|
|
||||||
: borderpx;
|
|
||||||
if (VISIBLEON(c, m) && !c->isunglobal &&
|
if (VISIBLEON(c, m) && !c->isunglobal &&
|
||||||
((m->isoverview && !client_is_x11_popup(c)) || ISTILED(c))) {
|
((m->isoverview && !client_is_x11_popup(c)) || ISTILED(c))) {
|
||||||
if (i == 0) {
|
if (i == 0) {
|
||||||
|
|
@ -437,10 +429,6 @@ void vertical_grid(Monitor *m) {
|
||||||
if (c->mon != m)
|
if (c->mon != m)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
c->bw =
|
|
||||||
m->visible_tiling_clients == 1 && no_border_when_single && smartgaps
|
|
||||||
? 0
|
|
||||||
: borderpx;
|
|
||||||
if (VISIBLEON(c, m) && !c->isunglobal &&
|
if (VISIBLEON(c, m) && !c->isunglobal &&
|
||||||
((m->isoverview && !client_is_x11_popup(c)) || ISTILED(c))) {
|
((m->isoverview && !client_is_x11_popup(c)) || ISTILED(c))) {
|
||||||
cx = m->w.x + (i / rows) * (cw + target_gappi);
|
cx = m->w.x + (i / rows) * (cw + target_gappi);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue