[Kde-hardware-devel] Review Request 123418: Add X11 guards

Martin Gräßlin mgraesslin at kde.org
Mon Apr 20 05:56:22 UTC 2015


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



daemon/kwinkscreenhelpereffect.h (line 30)
<https://git.reviewboard.kde.org/r/123418/#comment54140>

    Is it really your intention to have compile checks for X11?
    
    Let's face it the complete kwinscreenhelpereffect is pointless to compile at all without X11.
    
    My suggestion is to only have the runtime checks.



daemon/kwinkscreenhelpereffect.cpp (lines 36 - 37)
<https://git.reviewboard.kde.org/r/123418/#comment54139>

    why the bool: the m_connection should also carry the information: if it's not null you are on xcb, otherwise it'll be null.
    
    Personally I have always only set the m_connection if we are on x11, mostly because I don't trust Qt :-P


- Martin Gräßlin


On April 18, 2015, 6:34 p.m., Kai Uwe Broulik wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/123418/
> -----------------------------------------------------------
> 
> (Updated April 18, 2015, 6:34 p.m.)
> 
> 
> Review request for Solid, Martin Gräßlin and Nerdopolis Turfwalker.
> 
> 
> Bugs: 346341
>     https://bugs.kde.org/show_bug.cgi?id=346341
> 
> 
> Repository: powerdevil
> 
> 
> Description
> -------
> 
> Improve X11 guards by correcting compile-time checks and adding runtime checks; also don't constantly query QX11Info.
> 
> 
> Diffs
> -----
> 
>   daemon/backends/upower/xrandrbrightness.h 67d44a8 
>   daemon/backends/upower/xrandrbrightness.cpp f1cd5a5 
>   daemon/kwinkscreenhelpereffect.h 4d0a163 
>   daemon/kwinkscreenhelpereffect.cpp dec5d65 
> 
> Diff: https://git.reviewboard.kde.org/r/123418/diff/
> 
> 
> Testing
> -------
> 
> Compiles both with and without HAVE_XCB but I don't have a Wayland setup.
> 
> 
> Thanks,
> 
> Kai Uwe Broulik
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-hardware-devel/attachments/20150420/05aabe3c/attachment.html>


More information about the Kde-hardware-devel mailing list