• Martin Flöser's avatar
    Reduce code-duplication of socketpair in WaylandServer · a7f5c167
    Martin Flöser authored
    WaylandServer creates a socketpair for several Wayland connections. So
    far this duplicated code quite a bit.
    This change introduces one method to perform the socketpair and the
    error checking plus creating the server side ClientConnection from the
    Test Plan: Tests still pass
    Reviewers: #kwin, #plasma_on_wayland
    Subscribers: plasma-devel, kwin
    Tags: #plasma_on_wayland, #kwin
    Differential Revision: https://phabricator.kde.org/D3576
wayland_server.cpp 21.6 KB