diff options
author | 2018-04-12 20:19:54 -0400 | |
---|---|---|
committer | 2018-04-12 20:19:54 -0400 | |
commit | cd1b32453a9296c18b28bff71607aeb22987b5cd (patch) | |
tree | c653c6d525b471914c01a9d7ae543f521b6138ed /common/util.c | |
parent | Merge pull request #1634 from aleksander/master (diff) | |
parent | Fix separator height calculation (diff) | |
download | sway-cd1b32453a9296c18b28bff71607aeb22987b5cd.tar.gz sway-cd1b32453a9296c18b28bff71607aeb22987b5cd.tar.zst sway-cd1b32453a9296c18b28bff71607aeb22987b5cd.zip |
Merge branch 'wlroots'
Diffstat (limited to 'common/util.c')
-rw-r--r-- | common/util.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/common/util.c b/common/util.c index d6369853..fb7f9454 100644 --- a/common/util.c +++ b/common/util.c | |||
@@ -8,8 +8,8 @@ | |||
8 | #include <stdlib.h> | 8 | #include <stdlib.h> |
9 | #include <string.h> | 9 | #include <string.h> |
10 | #include <strings.h> | 10 | #include <strings.h> |
11 | #include <wlc/wlc.h> | ||
12 | #include <xkbcommon/xkbcommon-names.h> | 11 | #include <xkbcommon/xkbcommon-names.h> |
12 | #include <wlr/types/wlr_keyboard.h> | ||
13 | #include "log.h" | 13 | #include "log.h" |
14 | #include "readline.h" | 14 | #include "readline.h" |
15 | #include "util.h" | 15 | #include "util.h" |
@@ -29,16 +29,16 @@ static struct modifier_key { | |||
29 | char *name; | 29 | char *name; |
30 | uint32_t mod; | 30 | uint32_t mod; |
31 | } modifiers[] = { | 31 | } modifiers[] = { |
32 | { XKB_MOD_NAME_SHIFT, WLC_BIT_MOD_SHIFT }, | 32 | { XKB_MOD_NAME_SHIFT, WLR_MODIFIER_SHIFT }, |
33 | { XKB_MOD_NAME_CAPS, WLC_BIT_MOD_CAPS }, | 33 | { XKB_MOD_NAME_CAPS, WLR_MODIFIER_CAPS }, |
34 | { XKB_MOD_NAME_CTRL, WLC_BIT_MOD_CTRL }, | 34 | { XKB_MOD_NAME_CTRL, WLR_MODIFIER_CTRL }, |
35 | { "Ctrl", WLC_BIT_MOD_CTRL }, | 35 | { "Ctrl", WLR_MODIFIER_CTRL }, |
36 | { XKB_MOD_NAME_ALT, WLC_BIT_MOD_ALT }, | 36 | { XKB_MOD_NAME_ALT, WLR_MODIFIER_ALT }, |
37 | { "Alt", WLC_BIT_MOD_ALT }, | 37 | { "Alt", WLR_MODIFIER_ALT }, |
38 | { XKB_MOD_NAME_NUM, WLC_BIT_MOD_MOD2 }, | 38 | { XKB_MOD_NAME_NUM, WLR_MODIFIER_MOD2 }, |
39 | { "Mod3", WLC_BIT_MOD_MOD3 }, | 39 | { "Mod3", WLR_MODIFIER_MOD3 }, |
40 | { XKB_MOD_NAME_LOGO, WLC_BIT_MOD_LOGO }, | 40 | { XKB_MOD_NAME_LOGO, WLR_MODIFIER_LOGO }, |
41 | { "Mod5", WLC_BIT_MOD_MOD5 }, | 41 | { "Mod5", WLR_MODIFIER_MOD5 }, |
42 | }; | 42 | }; |
43 | 43 | ||
44 | uint32_t get_modifier_mask_by_name(const char *name) { | 44 | uint32_t get_modifier_mask_by_name(const char *name) { |
@@ -113,7 +113,7 @@ uint32_t parse_color(const char *color) { | |||
113 | 113 | ||
114 | int len = strlen(color); | 114 | int len = strlen(color); |
115 | if (len != 6 && len != 8) { | 115 | if (len != 6 && len != 8) { |
116 | sway_log(L_DEBUG, "Invalid color %s, defaulting to color 0xFFFFFFFF", color); | 116 | wlr_log(L_DEBUG, "Invalid color %s, defaulting to color 0xFFFFFFFF", color); |
117 | return 0xFFFFFFFF; | 117 | return 0xFFFFFFFF; |
118 | } | 118 | } |
119 | uint32_t res = (uint32_t)strtoul(color, NULL, 16); | 119 | uint32_t res = (uint32_t)strtoul(color, NULL, 16); |