From 9837ea5729c01bbbec10f6200509146a1b7bd28c Mon Sep 17 00:00:00 2001 From: jackinfurs Date: Sat, 27 Dec 2025 08:21:23 +0000 Subject: fix: ignore case of keysyms in `keybindings` --- dwl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'dwl.c') diff --git a/dwl.c b/dwl.c index 12f441e..44f3ad9 100644 --- a/dwl.c +++ b/dwl.c @@ -1616,7 +1616,8 @@ keybinding(uint32_t mods, xkb_keysym_t sym) const Key *k; for (k = keys; k < END(keys); k++) { if (CLEANMASK(mods) == CLEANMASK(k->mod) - && sym == k->keysym && k->func) { + && xkb_keysym_to_lower(sym) == xkb_keysym_to_lower(k->keysym) + && k->func) { k->func(&k->arg); return 1; } -- cgit v1.3 From ca4123072d63ff52351f3a6bd64ae4a3e7a9888f Mon Sep 17 00:00:00 2001 From: Guido Cella Date: Tue, 3 Feb 2026 11:44:47 +0100 Subject: add support for the data control protocol Enables the protocol documented at https://wayland.app/protocols/ext-data-control-v1 It is the upstreamed version of the old wlr_data_control. It is used e.g. by mpv to read and write the clipboard. --- dwl.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'dwl.c') diff --git a/dwl.c b/dwl.c index 44f3ad9..320910d 100644 --- a/dwl.c +++ b/dwl.c @@ -24,6 +24,7 @@ #include #include #include +#include #include #include #include @@ -2518,6 +2519,7 @@ setup(void) wlr_export_dmabuf_manager_v1_create(dpy); wlr_screencopy_manager_v1_create(dpy); wlr_data_control_manager_v1_create(dpy); + wlr_ext_data_control_manager_v1_create(dpy, 1); wlr_primary_selection_v1_device_manager_create(dpy); wlr_viewporter_create(dpy); wlr_single_pixel_buffer_manager_v1_create(dpy); -- cgit v1.3 From cb4cc3ae8ff2bdc7e41ae7ab6e888b0c3b176b16 Mon Sep 17 00:00:00 2001 From: Diego Viola Date: Wed, 25 Feb 2026 02:38:09 -0300 Subject: Fix typos --- dwl.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'dwl.c') diff --git a/dwl.c b/dwl.c index 320910d..101a45f 100644 --- a/dwl.c +++ b/dwl.c @@ -586,7 +586,7 @@ arrangelayers(Monitor *m) arrange(m); } - /* Arrange non-exlusive surfaces from top->bottom */ + /* Arrange non-exclusive surfaces from top->bottom */ for (i = 3; i >= 0; i--) arrangelayer(m, &m->layers[i], &usable_area, 0); @@ -2134,7 +2134,7 @@ powermgrsetmode(struct wl_listener *listener, void *data) if (!m) return; - m->gamma_lut_changed = 1; /* Reapply gamma LUT when re-enabling the ouput */ + m->gamma_lut_changed = 1; /* Reapply gamma LUT when re-enabling the output */ wlr_output_state_set_enabled(&state, event->mode); wlr_output_commit_state(m->wlr_output, &state); @@ -2456,7 +2456,7 @@ setup(void) wlr_log_init(log_level, NULL); /* The Wayland display is managed by libwayland. It handles accepting - * clients from the Unix socket, manging Wayland globals, and so on. */ + * clients from the Unix socket, managing Wayland globals, and so on. */ dpy = wl_display_create(); event_loop = wl_display_get_event_loop(dpy); -- cgit v1.3