labwc/src
John Lindgren 827d2bcb45 keybind: refactor update_keycodes_iter() to reduce nesting
update_keycodes_iter() currently has 4(!) levels of nested loops, which
makes the logic (especially the break/continue statements) difficult to
understand. The logic also appears to continue looping uselessly after
a given keycode has already been added to a keybind.

Refactor by adding some small utility functions:

- keybind_contains_keycode()
- keybind_contains_keysym()
- keybind_contains_any_keysym()

No functional change intended.
2025-08-16 13:23:23 -04:00
..
common scaled-icon-buffer: prevent accidental downcasting of scale 2025-08-09 16:52:10 +09:00
config keybind: refactor update_keycodes_iter() to reduce nesting 2025-08-16 13:23:23 -04:00
decorations include: reduce global includes in labwc.h 2025-07-30 21:04:31 +01:00
foreign-toplevel foreign-toplevel: simplify and fully separate ext-foreign/wlr-foreign 2025-08-07 23:27:04 -04:00
img src: include primary header first 2025-07-29 21:51:56 +01:00
input keybind: refactor update_keycodes_iter() to reduce nesting 2025-08-16 13:23:23 -04:00
menu menu: fix leak in update_client_send_to_menu() 2025-08-16 14:54:48 +01:00
protocols src: include primary header first 2025-07-29 21:51:56 +01:00
ssd include: reduce global includes in labwc.h 2025-07-30 21:04:31 +01:00
action.c labnag: return special value on timeout 2025-08-12 03:10:14 +09:00
buffer.c src: include primary header first 2025-07-29 21:51:56 +01:00
debug.c include: split output.h from labwc.h 2025-07-30 21:04:31 +01:00
desktop-entry.c src: include primary header first 2025-07-29 21:51:56 +01:00
desktop.c include: reduce global includes in labwc.h 2025-07-30 21:04:31 +01:00
dnd.c src: include primary header first 2025-07-29 21:51:56 +01:00
edges.c include: split output.h from labwc.h 2025-07-30 21:04:31 +01:00
idle.c src: include primary header first 2025-07-29 21:51:56 +01:00
interactive.c interactive: allow snapping to corner edges 2025-08-04 21:24:12 +01:00
layers.c include: reduce global includes in labwc.h 2025-07-30 21:04:31 +01:00
magnifier.c include: reduce global includes in labwc.h 2025-07-30 21:04:31 +01:00
main.c include: reduce global includes in labwc.h 2025-07-30 21:04:31 +01:00
meson.build icon-loader: rename to desktop-entry 2024-11-19 18:36:08 +01:00
node.c src: include primary header first 2025-07-29 21:51:56 +01:00
osd-field.c include: split output.h from labwc.h 2025-07-30 21:04:31 +01:00
osd.c osd: add null-check for output->osd_scene.tree 2025-08-09 12:03:41 +01:00
output-state.c include: split output.h from labwc.h 2025-07-30 21:04:31 +01:00
output-virtual.c include: split output.h from labwc.h 2025-07-30 21:04:31 +01:00
output.c output: make autoEnableOutputs=no apply only to drm outputs 2025-08-05 04:18:43 +02:00
overlay.c interactive: allow snapping to corner edges 2025-08-04 21:24:12 +01:00
placement.c include: split output.h from labwc.h 2025-07-30 21:04:31 +01:00
regions.c include: split output.h from labwc.h 2025-07-30 21:04:31 +01:00
resistance.c src: include primary header first 2025-07-29 21:51:56 +01:00
resize-outlines.c src: include primary header first 2025-07-29 21:51:56 +01:00
seat.c include: reduce global includes in labwc.h 2025-07-30 21:04:31 +01:00
server.c action: add support for <prompt> in 'If' actions 2025-08-09 10:44:03 +01:00
session-lock.c include: split output.h from labwc.h 2025-07-30 21:04:31 +01:00
snap-constraints.c src: include primary header first 2025-07-29 21:51:56 +01:00
snap.c include: split output.h from labwc.h 2025-07-30 21:04:31 +01:00
tearing.c include: reduce global includes in labwc.h 2025-07-30 21:04:31 +01:00
theme.c include: reduce global includes in labwc.h 2025-07-30 21:04:31 +01:00
view-impl-common.c foreign-toplevel: simplify and fully separate ext-foreign/wlr-foreign 2025-08-07 23:27:04 -04:00
view.c foreign-toplevel: simplify and fully separate ext-foreign/wlr-foreign 2025-08-07 23:27:04 -04:00
window-rules.c src: include primary header first 2025-07-29 21:51:56 +01:00
workspaces.c include: reduce global includes in labwc.h 2025-07-30 21:04:31 +01:00
xdg-popup.c include: reduce global includes in labwc.h 2025-07-30 21:04:31 +01:00
xdg.c foreign-toplevel: simplify and fully separate ext-foreign/wlr-foreign 2025-08-07 23:27:04 -04:00
xwayland-unmanaged.c include: reduce global includes in labwc.h 2025-07-30 21:04:31 +01:00
xwayland.c foreign-toplevel: simplify and fully separate ext-foreign/wlr-foreign 2025-08-07 23:27:04 -04:00