mirror of
https://github.com/labwc/labwc.git
synced 2025-11-03 09:01:51 -05:00
src/config/rcxml.c: Check for modifiers when merging mousebinds
Previously mosuebinds for the same context using the same button but different modifiers would be merged, e.g. only the last one would survive the merge. This commit adds the missing check for keyboard modifiers. Fixes #630 Reported-by: @lidgnulinux
This commit is contained in:
parent
1e66ba8fd7
commit
5aac35a27a
1 changed files with 2 additions and 1 deletions
|
|
@ -658,7 +658,8 @@ merge_mouse_bindings(void)
|
|||
if (existing->context == current->context
|
||||
&& existing->button == current->button
|
||||
&& existing->direction == current->direction
|
||||
&& existing->mouse_event == current->mouse_event) {
|
||||
&& existing->mouse_event == current->mouse_event
|
||||
&& existing->modifiers == current->modifiers) {
|
||||
wl_list_remove(&existing->link);
|
||||
action_list_free(&existing->actions);
|
||||
free(existing);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue