Skip to content

Commit

Permalink
xfree86: don't overwrite option list (#32115)
Browse files Browse the repository at this point in the history
Options set in the configuration file were unconditionally overwritten by
the server. Merge the already existing options and the new options together
instead of just overwriting ones.

Introduced in commit 2199842
Author: Peter Hutterer <[email protected]>
Date:   Thu Sep 2 10:52:54 2010 +1000

    xfree86: remove extraOptions field from IDevRec.

X.Org Bug 32115 <http://bugs.freedesktop.org/show_bug.cgi?id=32115>

Signed-off-by: Peter Hutterer <[email protected]>
Reviewed-by: Dan Nicholson <[email protected]>
Tested-by: David Ronis <[email protected]>
  • Loading branch information
whot committed Dec 6, 2010
1 parent 8f3fa8f commit beea237
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hw/xfree86/common/xf86Config.c
Original file line number Diff line number Diff line change
Expand Up @@ -1465,7 +1465,8 @@ configInputDevices(XF86ConfLayoutPtr layout, serverLayoutPtr servlayoutp)
free(indp);
return FALSE;
}
indp[count]->options = irp->iref_option_lst;
indp[count]->options = xf86OptionListMerge(indp[count]->options,
irp->iref_option_lst);
count++;
irp = (XF86ConfInputrefPtr)irp->list.next;
}
Expand Down

0 comments on commit beea237

Please sign in to comment.