Review Request 122019: Fix crash in KGlobalAccel X11 runtime shutdown
Martin Gräßlin
mgraesslin at kde.org
Mon Jan 12 15:54:21 UTC 2015
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/122019/#review73872
-----------------------------------------------------------
src/runtime/kglobalaccel_x11.cpp
<https://git.reviewboard.kde.org/r/122019/#comment51365>
somehow I don't like this guard due to QX11Info::connection() not being a valid connection any more if the connection is broken.
I'm wondering whether there are other ways - I expect that Qt quits due to an XIO error? Maybe we could install a handler for it?
- Martin Gräßlin
On Jan. 12, 2015, 4:26 p.m., David Edmundson wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/122019/
> -----------------------------------------------------------
>
> (Updated Jan. 12, 2015, 4:26 p.m.)
>
>
> Review request for KDE Frameworks.
>
>
> Repository: kglobalaccel
>
>
> Description
> -------
>
> As kglobalaccel is no longer a kdeinit executable it is not killed
> gracefully in shutdown, when a user logs out it will be killed as the X
> connection is removed.
>
> GlobalShortcutsRegistry on deletion calls grabKey(key, false) to remove
> any remaining grabs, since the X connection has gone any XCB results in
> a crash.
>
> This patch adds a guard around that.
>
>
> Diffs
> -----
>
> src/runtime/kglobalaccel_x11.cpp dfb03b5
>
> Diff: https://git.reviewboard.kde.org/r/122019/diff/
>
>
> Testing
> -------
>
>
> Thanks,
>
> David Edmundson
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20150112/8b1560ba/attachment.html>
More information about the Kde-frameworks-devel
mailing list