Skip to content
  • Martin Flöser's avatar
    Move implementation of iconGeometry from ShellClient to AbstractClient · 455c5c07
    Martin Flöser authored
    Summary:
    This allows Client to use the Wayland-specific implementation if there
    is no icon geometry set through the X11 way. That way Xwayland windows
    have an icon geometry even if Plasma is using Wayland and setting the
    icon geometry in the Wayland way. Which is expected as Plasma is
    ignorant about the windowing system a PlasmaWindow uses.
    
    In order to move the code from ShellClient to AbstractClient
    WaylandServer gained a new findAbstractClient(Surface*) method which
    is just like findClient(Surface*) with the difference that it returns
    an AbstractClient instead of a ShellClient*.
    
    Test Plan:
    minimized/unminimized an X client on Wayland, verified
    animation is correct (though broken in general for minimize)
    
    Reviewers: #kwin, #plasma_on_wayland
    
    Subscribers: plasma-devel, kwin
    
    Tags: #plasma_on_wayland, #kwin
    
    Differential Revision: https://phabricator.kde.org/D2530
    455c5c07