mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-05-03 06:46:38 -04:00
add support for workspace 10
This commit is contained in:
parent
c3dcee2c8e
commit
b7010dad11
3 changed files with 6 additions and 6 deletions
|
|
@ -63,8 +63,8 @@ uint32_t get_tags_first_tag_num(uint32_t source_tags) {
|
|||
|
||||
if (i == 1) {
|
||||
return 1;
|
||||
} else if (i > 9) {
|
||||
return 9;
|
||||
} else if (i >= LENGTH(tags)) {
|
||||
return LENGTH(tags);
|
||||
} else {
|
||||
return i;
|
||||
}
|
||||
|
|
@ -85,8 +85,8 @@ uint32_t get_tags_first_tag(uint32_t source_tags) {
|
|||
|
||||
if (i == 1) {
|
||||
return 1;
|
||||
} else if (i > 9) {
|
||||
return 1 << 8;
|
||||
} else if (i > LENGTH(tags)) {
|
||||
return 1 << (LENGTH(tags) - 1);
|
||||
} else {
|
||||
return 1 << (i - 1);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue