Skip to content

servoshell/desktop: condition gamepad support on pref#39889

Merged
Taym95 merged 1 commit intoservo:mainfrom
gterzian:make_gamepad_init_conditional_on_prefs
Oct 15, 2025
Merged

servoshell/desktop: condition gamepad support on pref#39889
Taym95 merged 1 commit intoservo:mainfrom
gterzian:make_gamepad_init_conditional_on_prefs

Conversation

@gterzian
Copy link
Copy Markdown
Member

@gterzian gterzian commented Oct 15, 2025

In desktop servoshell, only initialize gamepad support if pref is on, in particular because gilrs spawns background threads which we don't need unless the pref is on(and which cannot be shutdown cleanly because they are outside of our reach). Note that gamepad is enabled by default, so avoiding the threads requires dom_gamepad_enabled=false.

Testing: Manual; gilrs threads abstent when running servo with --pref dom_gamepad_enabled=false
Fixes: #30849

@gterzian gterzian requested a review from atbrakhi as a code owner October 15, 2025 08:13
@servo-highfive servo-highfive added the S-awaiting-review There is new code that needs to be reviewed. label Oct 15, 2025
@gterzian gterzian requested review from Taym95 and wusyong October 15, 2025 08:13
@servo-highfive servo-highfive removed the S-awaiting-review There is new code that needs to be reviewed. label Oct 15, 2025
@Taym95 Taym95 added this pull request to the merge queue Oct 15, 2025
@servo-highfive servo-highfive added the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Oct 15, 2025
Merged via the queue into servo:main with commit b0a4c8e Oct 15, 2025
32 checks passed
@servo-highfive servo-highfive removed the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Oct 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Clean Shutdown of Servo

4 participants