From 18f2854656b9cc0277a0c881d4252a35e4c83f53 Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Sat, 7 Jan 2023 15:35:42 +0100 Subject: Fix for "Shift-Ctrl-C shortcut in fluid not working on newer linux OS's" (#637) --- src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx b/src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx index 6c04beecf..365010e2c 100644 --- a/src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx +++ b/src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx @@ -655,6 +655,7 @@ static void wl_keyboard_key(void *data, struct wl_keyboard *wl_keyboard, static char buf[128]; uint32_t keycode = key + 8; xkb_keysym_t sym = xkb_state_key_get_one_sym(seat->xkb_state, keycode); + if (sym >= 'A' && sym <= 'Z') sym += 32; // replace uppercase by lowercase letter /*xkb_keysym_get_name(sym, buf, sizeof(buf)); const char *action = (state == WL_KEYBOARD_KEY_STATE_PRESSED ? "press" : "release"); fprintf(stderr, "key %s: sym: %-12s(%d) code:%u fl_win=%p, ", action, buf, sym, keycode, Fl_Wayland_Screen_Driver::surface_to_window(seat->keyboard_surface));*/ -- cgit v1.2.3