Forward input events through the Scene
Currently, the Scene only handles output. Input is handled separately. I think that it would be nicer if the Scene handles input too.
SeatInterface
won't need any custom handling for sub-surfaces. It would also allow us to unify focus handling for decorations and windows. This also falls nicely with QtQuick.
Potential implementation can look as follows:
- Add input event handling hooks to the
Item
class - Add input event entries in the
Scene
class, which will forward the events to the right item - The
Scene
would keep track of focus - Override input event handlers in
SurfaceItemWayland
,SurfaceItemInternal
, andDecorationItem
Edited by Vlad Zahorodnii