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
Branch
generic-client-added-signal
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 26741
Build 26759: arc lint + arc unit
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.