Emit Workspace::clientAdded() with AbstractClient
ClosedPublic

Authored by zzag on May 11 2020, 6:06 PM.

Details

Summary

Currently, if one wants to monitor for new X11 and Wayland clients, they
have to listen for two signals. Workspace::clientAdded() is emitted only
for X11 and Xwayland clients, while WaylandServer::shellClientAdded() is
emitted only for xdg-shell clients. Such design doesn't scale well.

As the first towards emitting Workspace::clientAdded() for new Wayland
clients, this change replaces the X11Client parameter in the clientAdded
signal with AbstractClient.

Test Plan

Tests still pass.

Diff Detail

Repository
R108 KWin
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
zzag created this revision.May 11 2020, 6:06 PM
Restricted Application added a project: KWin. · View Herald TranscriptMay 11 2020, 6:06 PM
Restricted Application added a subscriber: kwin. · View Herald Transcript
zzag requested review of this revision.May 11 2020, 6:06 PM
cblack accepted this revision.May 11 2020, 6:08 PM
This revision is now accepted and ready to land.May 11 2020, 6:08 PM
This revision was automatically updated to reflect the committed changes.