Skip to content
  • Eike Hein's avatar
    Don't close plasmoid when closing a subdialog · fc155e94
    Eike Hein authored
    Summary:
    This patch redoes the fencing mechanism around
    plasmoid.hideOnWindowDeactivate for window focus
    handovers to be more reliable and generic. It's now
    always disabled when a dialog is about to be
    destroyed, and renabled on focus-in or when exiting
    the root list. The dialog code is also fixed not
    to close the plasmoid when it knows it's window
    deactivation is part of its own destruction.
    
    WindowSystem::monitorWindowFocus is also changed
    to work in a single-shot sort of way, removing
    the event filter again once it caught an event.
    
    Fixes a refactoring regression from 84f1cb1c.
    
    BUG:388669
    
    Reviewers: #plasma
    
    Subscribers: plasma-devel
    
    Tags: #plasma
    
    Differential Revision: https://phabricator.kde.org/D9945
    fc155e94