mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-02-21 01:40:21 -05:00
opt: reset global window record per when arrange
This commit is contained in:
parent
af1f7850ee
commit
42f722ada2
3 changed files with 29 additions and 0 deletions
|
|
@ -430,4 +430,15 @@ float *get_border_color(Client *c) {
|
|||
} else {
|
||||
return bordercolor;
|
||||
}
|
||||
}
|
||||
|
||||
int is_single_bit_set(uint32_t x) { return x && !(x & (x - 1)); }
|
||||
|
||||
bool client_only_in_one_tag(Client *c) {
|
||||
uint32_t masked = c->tags & TAGMASK;
|
||||
if (is_single_bit_set(masked)) {
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue