KActivities ResourceInstance(quintptr wid, QObject *parent = nullptr);
KActivities assumes a window ID is a number.
This will be a wayland problem.
IMHO this should be a QWindow so that we have a chance for an implementation to do something in the future. That would bring a QGui dep :/
Adding this as an overload without removing and deprecating the int version would be doable within KF5.
Ultimately we need some way for:
- applications to set a URI on a UID
- kactivitymanagerd to know when a surface with that UID is active or not
- we could go the same way as orca on wayland and have the clients tell kactivitymanagerd directly when they have/lose focus, and skip the WM completely
Though that's arguably more a wayland task than a frameworks task.