Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Follow up wlroots input device field cleanup #6877

Closed

Conversation

bl4ckb0ne
Copy link
Contributor

Ref 1

@bl4ckb0ne bl4ckb0ne mentioned this pull request Mar 17, 2022
@bl4ckb0ne bl4ckb0ne force-pushed the wlroots-input-device-field-cleanup branch 2 times, most recently from b6d18f9 to 84c0368 Compare March 17, 2022 18:08
@@ -725,14 +726,25 @@ static void seat_apply_input_config(struct sway_seat *seat,
ic == NULL ? MAPPED_TO_DEFAULT : ic->mapped_to;

switch (mapped_to) {
case MAPPED_TO_DEFAULT:
case MAPPED_TO_DEFAULT:;
/*
* If the wlroots backend provides an output name, use that.
*
* Otherwise, try to map built-in touch and tablet tool devices to the
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/tablet tool/pointer?

case WLR_INPUT_DEVICE_TOUCH:
mapped_to_output = dev->touch->output_name;
break;
default:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is missing a case for tablet tool devices.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, I guess we don't actually have an output_name field for these yet?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nope, only tablet and pointer.

@bl4ckb0ne bl4ckb0ne force-pushed the wlroots-input-device-field-cleanup branch from 84c0368 to d582669 Compare March 17, 2022 18:23
Copy link
Contributor

@vyivel vyivel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@vyivel vyivel enabled auto-merge (rebase) March 17, 2022 18:26
@vyivel vyivel disabled auto-merge March 17, 2022 18:28
@vyivel vyivel enabled auto-merge (rebase) March 17, 2022 18:28
@vyivel vyivel disabled auto-merge March 17, 2022 18:30
@bl4ckb0ne bl4ckb0ne force-pushed the wlroots-input-device-field-cleanup branch from f10c031 to 054515b Compare March 17, 2022 18:32
@vyivel vyivel enabled auto-merge (rebase) March 17, 2022 18:32
@bl4ckb0ne
Copy link
Contributor Author

Closed in favour of #6896

@bl4ckb0ne bl4ckb0ne closed this Mar 17, 2022
auto-merge was automatically disabled March 17, 2022 18:46

Pull request was closed

@bl4ckb0ne bl4ckb0ne deleted the wlroots-input-device-field-cleanup branch March 17, 2022 18:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants