Skip to content

Commit

Permalink
Don't leak VirtualInputDevice keyboards (#3720)
Browse files Browse the repository at this point in the history
Every time an app supporting text-input-v3 starts we allocate a
"virtual-keyboard", we should also deallocate it as appropriate.

This was identified while investigating #3710, and is part of the fix
(possibly all the fix - still testing)
  • Loading branch information
tarek-y-ismail authored and Saviq committed Jan 16, 2025
1 parent 009c7fe commit d278372
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/server/frontend_wayland/text_input_v3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,7 @@ mf::TextInputV3::TextInputV3(
mf::TextInputV3::~TextInputV3()
{
seat.remove_focus_listener(client, this);
ctx->device_registry->remove_device(keyboard_device);
ctx->text_input_hub->deactivate_handler(handler);
}

Expand Down

0 comments on commit d278372

Please sign in to comment.