mirror of
https://github.com/labwc/labwc.git
synced 2025-11-03 09:01:51 -05:00
config: use wl_list_append() for libinput categories
...to make it more intuitive. Also, do not check for existance of name when type==DEFAULT because name will only exist when type==NONE.
This commit is contained in:
parent
a63f858f58
commit
94cec51d9f
2 changed files with 10 additions and 8 deletions
|
|
@ -79,7 +79,7 @@ configure_libinput(struct wlr_input_device *wlr_input_device)
|
|||
device_type_from_wlr_device(wlr_input_device);
|
||||
|
||||
struct libinput_category *device_category, *dc = NULL;
|
||||
wl_list_for_each(device_category, &rc.libinput_categories, link) {
|
||||
wl_list_for_each_reverse(device_category, &rc.libinput_categories, link) {
|
||||
if (device_category->name) {
|
||||
if (!strcasecmp(wlr_input_device->name,
|
||||
device_category->name)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue