mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-02-25 01:40:24 -05:00
opt: return early in check_hit_no_border
This commit is contained in:
parent
c9b72da1e0
commit
8528d8a702
1 changed files with 5 additions and 7 deletions
|
|
@ -1,22 +1,20 @@
|
|||
bool check_hit_no_border(Client *c) {
|
||||
int i;
|
||||
bool hit_no_border = false;
|
||||
if (!render_border) {
|
||||
hit_no_border = true;
|
||||
return true;
|
||||
}
|
||||
|
||||
for (i = 0; i < config.tag_rules_count; i++) {
|
||||
for (int i = 0; i < config.tag_rules_count; i++) {
|
||||
if (c->tags & (1 << (config.tag_rules[i].id - 1)) &&
|
||||
config.tag_rules[i].no_render_border) {
|
||||
hit_no_border = true;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
if (no_border_when_single && c && !c->isfloating &&
|
||||
c->mon && c->mon->visible_tiling_clients == 1) {
|
||||
hit_no_border = true;
|
||||
return true;
|
||||
}
|
||||
return hit_no_border;
|
||||
return false;
|
||||
}
|
||||
Client *termforwin(Client *w) {
|
||||
Client *c = NULL;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue