mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-02 11:55:59 +01:00
commit
facc5ef93a
2 changed files with 3 additions and 3 deletions
|
@ -459,7 +459,7 @@ static bool wlr_drm_connector_set_mode(struct wlr_output *output,
|
||||||
if (!crtc) {
|
if (!crtc) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
wlr_log(L_DEBUG, "%s: crtc=%ju ovr=%jd pri=%jd cur=%jd", conn->output.name,
|
wlr_log(L_DEBUG, "%s: crtc=%td ovr=%td pri=%td cur=%td", conn->output.name,
|
||||||
crtc - drm->crtcs,
|
crtc - drm->crtcs,
|
||||||
crtc->overlay ? crtc->overlay - drm->overlay_planes : -1,
|
crtc->overlay ? crtc->overlay - drm->overlay_planes : -1,
|
||||||
crtc->primary ? crtc->primary - drm->primary_planes : -1,
|
crtc->primary ? crtc->primary - drm->primary_planes : -1,
|
||||||
|
|
|
@ -215,13 +215,13 @@ void wlr_keyboard_set_keymap(struct wlr_keyboard *kb,
|
||||||
}
|
}
|
||||||
kb->keymap_fd = os_create_anonymous_file(kb->keymap_size);
|
kb->keymap_fd = os_create_anonymous_file(kb->keymap_size);
|
||||||
if (kb->keymap_fd < 0) {
|
if (kb->keymap_fd < 0) {
|
||||||
wlr_log(L_ERROR, "creating a keymap file for %lu bytes failed", kb->keymap_size);
|
wlr_log(L_ERROR, "creating a keymap file for %zu bytes failed", kb->keymap_size);
|
||||||
goto err;
|
goto err;
|
||||||
}
|
}
|
||||||
void *ptr = mmap(NULL, kb->keymap_size,
|
void *ptr = mmap(NULL, kb->keymap_size,
|
||||||
PROT_READ | PROT_WRITE, MAP_SHARED, kb->keymap_fd, 0);
|
PROT_READ | PROT_WRITE, MAP_SHARED, kb->keymap_fd, 0);
|
||||||
if (ptr == (void*)-1) {
|
if (ptr == (void*)-1) {
|
||||||
wlr_log(L_ERROR, "failed to mmap() %lu bytes", kb->keymap_size);
|
wlr_log(L_ERROR, "failed to mmap() %zu bytes", kb->keymap_size);
|
||||||
goto err;
|
goto err;
|
||||||
}
|
}
|
||||||
strcpy(ptr, keymap_str);
|
strcpy(ptr, keymap_str);
|
||||||
|
|
Loading…
Reference in a new issue