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
|
|
@ -207,7 +207,7 @@ enum libinput_config_tap_button_map button_map = LIBINPUT_CONFIG_TAP_MAP_LRM;
|
||||||
#define MODKEY WLR_MODIFIER_ALT
|
#define MODKEY WLR_MODIFIER_ALT
|
||||||
|
|
||||||
static const char *tags[] = {
|
static const char *tags[] = {
|
||||||
"1", "2", "3", "4", "5", "6", "7", "8", "9",
|
"1", "2", "3", "4", "5", "6", "7", "8", "9", "10"
|
||||||
};
|
};
|
||||||
|
|
||||||
float focused_opacity = 1.0;
|
float focused_opacity = 1.0;
|
||||||
|
|
|
||||||
|
|
@ -71,7 +71,7 @@ static void handle_ext_workspace_deactivate(struct wl_listener *listener,
|
||||||
|
|
||||||
static const char *get_name_from_tag(uint32_t tag) {
|
static const char *get_name_from_tag(uint32_t tag) {
|
||||||
static const char *names[] = {"overview", "1", "2", "3", "4",
|
static const char *names[] = {"overview", "1", "2", "3", "4",
|
||||||
"5", "6", "7", "8", "9"};
|
"5", "6", "7", "8", "9", "10"};
|
||||||
return (tag < sizeof(names) / sizeof(names[0])) ? names[tag] : NULL;
|
return (tag < sizeof(names) / sizeof(names[0])) ? names[tag] : NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -63,8 +63,8 @@ uint32_t get_tags_first_tag_num(uint32_t source_tags) {
|
||||||
|
|
||||||
if (i == 1) {
|
if (i == 1) {
|
||||||
return 1;
|
return 1;
|
||||||
} else if (i > 9) {
|
} else if (i >= LENGTH(tags)) {
|
||||||
return 9;
|
return LENGTH(tags);
|
||||||
} else {
|
} else {
|
||||||
return i;
|
return i;
|
||||||
}
|
}
|
||||||
|
|
@ -85,8 +85,8 @@ uint32_t get_tags_first_tag(uint32_t source_tags) {
|
||||||
|
|
||||||
if (i == 1) {
|
if (i == 1) {
|
||||||
return 1;
|
return 1;
|
||||||
} else if (i > 9) {
|
} else if (i > LENGTH(tags)) {
|
||||||
return 1 << 8;
|
return 1 << (LENGTH(tags) - 1);
|
||||||
} else {
|
} else {
|
||||||
return 1 << (i - 1);
|
return 1 << (i - 1);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue