• Vlad Zahorodnii's avatar
    Restore old behavior of Workspace::clientArea(clientOpt, Toplevel) · 29588812
    Vlad Zahorodnii authored
    When geometry updates are blocked, the output doesn't get updated. This
    breaks Workspace::clientArea() overload that takes only the window.
    
    Previously, clientArea() would look up the output where the window is
    every time it's called, so the fact that the screen id or AbstractOutput
    is unsynchronized with the frame geometry was irrelevant.
    
    This change restores the old behavior as 5.23 is affected by the
    output() being out of sync with the frameGeometry(). Specifically, when
    kwin starts managing an X11 window, it will block geometry updates,
    setup the window, e.g. make it fullscreen, and unblock geometry updates.
    
    Since Workspace::clientArea(clientArea, Toplevel) uses the output(),
    X11Client::setFullScreen() will most likely put the X11 window at a
    wrong output if it's called inside X11Client::manage().
    
    BUG: 443787
    
    
    (cherry picked from commit 6d5fc9fd)
    29588812