Review Request 118167: Flush xcb connection after preparing KSelectionOwner::claim

Martin Gräßlin mgraesslin at kde.org
Mon May 19 06:03:14 UTC 2014



> On May 16, 2014, 3:38 p.m., Thomas Lübking wrote:
> > a) main.cpp, void Application::start()
> > -    Xcb::sync();
> >     owner->claim(m_replace, true);
> > +    Xcb::sync();
> > Sufficient? (though it warns about a QPA crash "later")
> > 
> > b) Qt bug (should flush once per eventcycle) or feature (keeps dirty flag and only flushes on internal need)? -> can such flag be set explicitly?
> 
> Martin Gräßlin wrote:
>     concerning a): no, as it could hit other applications, too.
>     
>     b) I'm not sure whether that's in the scope of Qt. If one goes down towards the lower level one needs to take care of it.
> 
> Thomas Lübking wrote:
>     What I meant is: if this is indeed just a bug in Qt, it's probably pointless to fix it here.
>     If it's a feature (and we've no access to it) it's oc. our duty to make unportable things work.
> 
> Martin Gräßlin wrote:
>     right, I thought about it and yes an xcb_flush() before going to sleep could make a few things easier. I'll see whether I can hack Qt for that next week.

investigation result from looking at Qt - not a solution. Qt uses a thread to poll the xcb connection socket, so we cannot flush before it's going to block again.


- Martin


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/118167/#review58061
-----------------------------------------------------------


On May 16, 2014, 3 p.m., Martin Gräßlin wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/118167/
> -----------------------------------------------------------
> 
> (Updated May 16, 2014, 3 p.m.)
> 
> 
> Review request for KDE Frameworks and kwin.
> 
> 
> Bugs: 334858
>     https://bugs.kde.org/show_bug.cgi?id=334858
> 
> 
> Repository: kwindowsystem
> 
> 
> Description
> -------
> 
> Flush xcb connection after preparing KSelectionOwner::claim
> 
> Without the flush nothing starts. This caused KWin to stall during a
> restart.
> 
> BUG: 334858
> 
> 
> Diffs
> -----
> 
>   src/kselectionowner.cpp 90a0004046135e7fee61fe2ef865b75eb421ea99 
> 
> Diff: https://git.reviewboard.kde.org/r/118167/diff/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Martin Gräßlin
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20140519/a91833e5/attachment.html>


More information about the Kde-frameworks-devel mailing list