Skip to content
  • David Edmundson's avatar
    [wayland] Place all toplevels before the first configure · efc62941
    David Edmundson authored
    Summary:
    Currently popups get positioned once at the initial configure, to set
    the correct size and again when they are mapped.
    
    Toplevels are currently only positioned when they are mapped. This works
    for all cases where the the toplevel defines its own size, but not if
    the window should have an initial size set by the placement strategy or
    window rules. Most notably the maximised placement strategy used on
    plasma mobile.
    
    Being out of sync and resizing later currently causes a positioning bug
    when plasma mobile is used with XdgShell.
    
    This patch repositions all top levels that don't have a position set
    through the plasma interface.
    
    Test Plan: Relevant unit test
    
    Reviewers: #kwin, bshah
    
    Reviewed By: bshah
    
    Subscribers: zzag, bshah, kwin
    
    Tags: #kwin
    
    Differential Revision: https://phabricator.kde.org/D20241
    efc62941