Review Request 118019: Update X11 app timestamp before activating window

Sebastian Kügler sebas at kde.org
Tue May 6 21:18:46 UTC 2014



> On May 6, 2014, 8:54 p.m., David Faure wrote:
> > We don't really need the xcb headers for this to compile (so the cmake check surprises me).
> > 
> > I thought the usual way was:
> > 
> > * at compile time, check for QX11Extras' availability (optional dependency)
> > * at runtime, check  if (QGuiApplication::platformName() == QStringLiteral("xcb")) { ... }

For QGuiApplication, wouldn't we need QWidgets, which seems undesirable as a dependency there, but is dragged in from QX11Info anyway? OTOH, there's also QX11Info::isPlatformX11(), which seems to get us the right info as well.

I've put both checks in there, let me know which one to pick.


- Sebastian


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


On May 6, 2014, 3:52 p.m., Sebastian Kügler wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/118019/
> -----------------------------------------------------------
> 
> (Updated May 6, 2014, 3:52 p.m.)
> 
> 
> Review request for KDE Frameworks, David Faure and Martin Gräßlin.
> 
> 
> Bugs: 332532
>     https://bugs.kde.org/show_bug.cgi?id=332532
> 
> 
> Repository: kdbusaddons
> 
> 
> Description
> -------
> 
> Update X11 app timestamp before activating window: This patch updates the window's timestamp before sending the signal to the app to raise the window. This makes raising the window following requestActivated work. It needs a handler in the app, though, to do the actual call to QMainWindow->activateWindow().
> 
> This part at least *could* go into KDBusAddons, perhaps conditionally (HAVE_X11?). Otherwise, we'd have to do this also in every single app that requires it.
> 
> Feedback?
> 
> 
> Diffs
> -----
> 
>   src/kdbusservice.cpp 4239e85 
>   CMakeLists.txt fe5feaf 
>   src/CMakeLists.txt 7c0c485 
> 
> Diff: https://git.reviewboard.kde.org/r/118019/diff/
> 
> 
> Testing
> -------
> 
> Implemented handler in systemsettings, verified that the window is raised on second start.
> 
> 
> Thanks,
> 
> Sebastian Kügler
> 
>

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


More information about the Kde-frameworks-devel mailing list