lp:~raof/mir/wayland-input-fixes
- Get this branch:
- bzr branch lp:~raof/mir/wayland-input-fixes
Branch merges
- Mir CI Bot: Needs Fixing (continuous-integration)
- Alan Griffiths: Approve
-
Diff: 680 lines (+210/-65)4 files modifieddebian/control (+1/-0)
src/protocol/wrapper_generator.cpp (+11/-1)
src/server/frontend/wayland/core_generated_interfaces.h (+60/-12)
src/server/frontend/wayland/wayland_connector.cpp (+138/-52)
Branch information
Recent revisions
- 4276. By Chris Halse Rogers
-
Wayland: Handle WlPointer and WlTouch lifetimes in the same way as WlKeyboard
- 4272. By Chris Halse Rogers
-
Wayland: Actually shrink the inputCtx::listeners vector when removing listeners
- 4271. By Chris Halse Rogers
-
Wayland: Don't double-free WlSurfaces.
The lifetime handling for wayland::* classes requires that the destructors *only* be called
via the destruction of the associated wl_resource. - 4270. By Chris Halse Rogers
-
Wayland: Handle keyboard lifetime, take 2.
Unfortunately, keyboard.release() is not the only way that keyboards can get destroyed.
All client resources will be destroyed on client disconnect, so ~WlKeyboard can't rely
on WlKeyboard::release( ) having ensured that no events are queued to the keyboard on
the Wayland event loop.Instead maintain a “destroyed” flag to short-circuit the event handler callbacks once
the WlKeyboard has been destroyed. - 4269. By Chris Halse Rogers
-
Wayland: Lifetimes should be tied to client resources only for non-global objects.
Globals are *not* tied to client lifetime - the globals themselves persist as long as the shell
wants them to.There *are* client resources associated on bind, but these are separate from the global resource.
Instead, properly set up non-global destructors from their constructors.
Branch metadata
- Branch format:
- Branch format 7
- Repository format:
- Bazaar repository format 2a (needs bzr 1.16 or later)
- Stacked on:
- lp:mir