<html>
 <body>
  <div style="font-family: Verdana, Arial, Helvetica, Sans-Serif;">
   <table bgcolor="#f9f3c9" width="100%" cellpadding="8" style="border: 1px #c9c399 solid;">
    <tr>
     <td>
      This is an automatically generated e-mail. To reply, visit:
      <a href="https://git.reviewboard.kde.org/r/114178/">https://git.reviewboard.kde.org/r/114178/</a>
     </td>
    </tr>
   </table>
   <br />





 <pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">The X server sets the depth in the GetImage reply to the depth of the drawable,
so I don't know what the problem is.

However, unlike pixmaps, windows have visuals, so instead of relying on the
depth I think the code should always look at the visual description, or
better yet the render pictformat that corresponds to the visual, and match
the red/green/blue/alpha masks against the QImage format.

(sorry for the late reply)
</pre>
 <br />









<p>- Fredrik Höglund</p>


<br />
<p>On January 24th, 2014, 10:32 a.m. UTC, Martin Gräßlin wrote:</p>








<table bgcolor="#fefadf" width="100%" cellspacing="0" cellpadding="8" style="background-image: url('https://git.reviewboard.kde.org/static/rb/images/review_request_box_top_bg.ab6f3b1072c9.png'); background-position: left top; background-repeat: repeat-x; border: 1px black solid;">
 <tr>
  <td>

<div>Review request for KDE Graphics and Richard Moore.</div>
<div>By Martin Gräßlin.</div>


<p style="color: grey;"><i>Updated Jan. 24, 2014, 10:32 a.m.</i></p>









<div style="margin-top: 1.5em;">
 <b style="color: #575012; font-size: 10pt;">Repository: </b>
ksnapshot
</div>


<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Description </h1>
 <table width="100%" bgcolor="#ffffff" cellspacing="0" cellpadding="10" style="border: 1px solid #b8b5a0">
 <tr>
  <td>
   <pre style="margin: 0; padding: 0; white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">Patch set is available in kde:clones/ksnapshot/graesslin/ksnapshot branch xcb. Direct link to latest commit: http://commits.kde.org/clones/ksnapshot/graesslin/ksnapshot/6e41a393337c198dd9cebe8c597014b638ea64f4

The branch prepares ksnapshot for two things: changes in QPixmap API in Qt5 and being able to support multiple platforms (X11/Wayland) at runtime which cannot be solved by pure ifdefs.

In summary the changes do the following:
* move X11 specific code from WindowGrabber into a windowgrabber_x11.cpp. Same needs to be done with the windows specific code, but I'm not able to do that due to lack of that OS
* port the X11 specific code from WindowGrabber to xcb. For that FindXCB and FindX11XCB is copied from ECM (to be deleted in the Qt 5 branch) and I added some of the helper classes we use in KWin.
* Port the xfixes specific code in ksnapshot.cpp to xcb
* Adds a PixmapHelper class with an X11 backend to provide the functionality which got removed in Qt5.

I'm quite confident that the code base after those changes will compile against Qt 5, though I have not tried yet. Wanted to get out this review request first.</pre>
  </td>
 </tr>
</table>



<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Diffs</b> </h1>
<ul style="margin-left: 3em; padding-left: 0;">

 <li>CMakeLists.txt <span style="color: grey">(9b2dc6e)</span></li>

 <li>cmake/modules/FindX11_XCB.cmake <span style="color: grey">(PRE-CREATION)</span></li>

 <li>cmake/modules/FindXCB.cmake <span style="color: grey">(PRE-CREATION)</span></li>

 <li>config-ksnapshot.h.cmake <span style="color: grey">(deca85f)</span></li>

 <li>freeregiongrabber.cpp <span style="color: grey">(f7f1924)</span></li>

 <li>kbackgroundsnapshot.cpp <span style="color: grey">(9d81ba1)</span></li>

 <li>ksnapshot.cpp <span style="color: grey">(ca308bb)</span></li>

 <li>ksnapshotobject.cpp <span style="color: grey">(608f7dc)</span></li>

 <li>pixmaphelper.h <span style="color: grey">(PRE-CREATION)</span></li>

 <li>pixmaphelper.cpp <span style="color: grey">(PRE-CREATION)</span></li>

 <li>pixmaphelper_x11.h <span style="color: grey">(PRE-CREATION)</span></li>

 <li>pixmaphelper_x11.cpp <span style="color: grey">(PRE-CREATION)</span></li>

 <li>regiongrabber.cpp <span style="color: grey">(fb038a3)</span></li>

 <li>windowgrabber.cpp <span style="color: grey">(21a9531)</span></li>

 <li>windowgrabber_x11.cpp <span style="color: grey">(PRE-CREATION)</span></li>

 <li>xcbutils.h <span style="color: grey">(PRE-CREATION)</span></li>

</ul>

<p><a href="https://git.reviewboard.kde.org/r/114178/diff/" style="margin-left: 3em;">View Diff</a></p>







  </td>
 </tr>
</table>








  </div>
 </body>
</html>