mirror of
https://github.com/swaywm/sway.git
synced 2025-11-15 06:59:50 -05:00
remove unused attachment config
This commit is contained in:
parent
a82c107c76
commit
35445b40a2
3 changed files with 26 additions and 12 deletions
|
|
@ -202,13 +202,6 @@ void seat_configure_device(struct sway_seat *seat,
|
|||
return;
|
||||
}
|
||||
|
||||
struct seat_config *seat_config = seat_get_config(seat);
|
||||
|
||||
if (seat_config) {
|
||||
seat_device->attachment_config =
|
||||
seat_config_get_attachment(seat_config, input_device->identifier);
|
||||
}
|
||||
|
||||
switch (input_device->wlr_device->type) {
|
||||
case WLR_INPUT_DEVICE_POINTER:
|
||||
seat_configure_pointer(seat, seat_device);
|
||||
|
|
@ -426,9 +419,6 @@ struct sway_container *seat_get_focus_by_type(struct sway_seat *seat,
|
|||
void seat_apply_config(struct sway_seat *seat,
|
||||
struct seat_config *seat_config) {
|
||||
struct sway_seat_device *seat_device = NULL;
|
||||
wl_list_for_each(seat_device, &seat->devices, link) {
|
||||
seat_device->attachment_config = NULL;
|
||||
}
|
||||
|
||||
if (!seat_config) {
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue