Details
-
Sub-task
-
Resolution: Done
-
P1: Critical
-
None
-
None
-
None
Description
Input classes need API review.
- We should find another way than having factory functions, maybe having a default, which can be replaced by another instance of QWaylandInputDevice/Pointer/Keybaord
- Serial handling needs a work over. We need to store the state of the different "implicit grabs" with the serial. Also adding type safety by having a serial type in the QtWaylandScanner would be nice. Paul had an idea of returning a serial from functions that generate one. Currently we have a mix of timeInMSecs and nextSerial which is completely wrong.
- Input apis are receiving QWaylandViews instead of QWaylandSurfaces. This made some sense once upon a time, but is wrong now, and we should just use QWaylandSurface.
- Make QWaylandKeymap available to QML compositors (inherit from QObject and add properties) and easily switch between keymaps for a given seat.