aboutsummaryrefslogtreecommitdiff
path: root/common/util.c
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-04-12 20:19:54 -0400
committerDrew DeVault <sir@cmpwn.com>2018-04-12 20:19:54 -0400
commitcd1b32453a9296c18b28bff71607aeb22987b5cd (patch)
treec653c6d525b471914c01a9d7ae543f521b6138ed /common/util.c
parent8e06985cc1b479724446fba752e0fecfb998e87b (diff)
parent5785170421dc38437acde8bb61068cd16fda716c (diff)
Merge branch 'wlroots'
Diffstat (limited to 'common/util.c')
-rw-r--r--common/util.c24
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 @@
#include <stdlib.h>
#include <string.h>
#include <strings.h>
-#include <wlc/wlc.h>
#include <xkbcommon/xkbcommon-names.h>
+#include <wlr/types/wlr_keyboard.h>
#include "log.h"
#include "readline.h"
#include "util.h"
@@ -29,16 +29,16 @@ static struct modifier_key {
char *name;
uint32_t mod;
} modifiers[] = {
- { XKB_MOD_NAME_SHIFT, WLC_BIT_MOD_SHIFT },
- { XKB_MOD_NAME_CAPS, WLC_BIT_MOD_CAPS },
- { XKB_MOD_NAME_CTRL, WLC_BIT_MOD_CTRL },
- { "Ctrl", WLC_BIT_MOD_CTRL },
- { XKB_MOD_NAME_ALT, WLC_BIT_MOD_ALT },
- { "Alt", WLC_BIT_MOD_ALT },
- { XKB_MOD_NAME_NUM, WLC_BIT_MOD_MOD2 },
- { "Mod3", WLC_BIT_MOD_MOD3 },
- { XKB_MOD_NAME_LOGO, WLC_BIT_MOD_LOGO },
- { "Mod5", WLC_BIT_MOD_MOD5 },
+ { XKB_MOD_NAME_SHIFT, WLR_MODIFIER_SHIFT },
+ { XKB_MOD_NAME_CAPS, WLR_MODIFIER_CAPS },
+ { XKB_MOD_NAME_CTRL, WLR_MODIFIER_CTRL },
+ { "Ctrl", WLR_MODIFIER_CTRL },
+ { XKB_MOD_NAME_ALT, WLR_MODIFIER_ALT },
+ { "Alt", WLR_MODIFIER_ALT },
+ { XKB_MOD_NAME_NUM, WLR_MODIFIER_MOD2 },
+ { "Mod3", WLR_MODIFIER_MOD3 },
+ { XKB_MOD_NAME_LOGO, WLR_MODIFIER_LOGO },
+ { "Mod5", WLR_MODIFIER_MOD5 },
};
uint32_t get_modifier_mask_by_name(const char *name) {
@@ -113,7 +113,7 @@ uint32_t parse_color(const char *color) {
int len = strlen(color);
if (len != 6 && len != 8) {
- sway_log(L_DEBUG, "Invalid color %s, defaulting to color 0xFFFFFFFF", color);
+ wlr_log(L_DEBUG, "Invalid color %s, defaulting to color 0xFFFFFFFF", color);
return 0xFFFFFFFF;
}
uint32_t res = (uint32_t)strtoul(color, NULL, 16);