https://bugs.kde.org/show_bug.cgi?id=354724

--- Comment #14 from Andreas Hartmetz <ahartm...@gmail.com> ---
(In reply to Thomas Lübking from comment #13)
> Andreas, the Qt patch kills the ability to cancel the logout process (when
> the process or user prevents closing a window), I'm not sure it will be
> accepted and if, you probably will have caused a feature breakage. See
> comment #8. Instead of actually closing, the system likely wants to ask
> whether anyone is ok with closing this window (ie. cause close events w/o
> actually closing the window)

How session management works is that the application connects to the
QGuiApplication::saveStateRequest() signal. When that signal arrives, the
application either saves its state or calls QSessionManager::cancel() on the
instance passed in the signal. Session management never works by just trying to
close windows without telling the application that it was triggered by session
management. In the absence of any proper mechanism, one *could* do it that way,
but it's a bad idea because relevant information and actions are not available
to the application that way.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to