see below On 27/04/15 03:43, Boudhayan Gupta wrote: > I'll target the build problems first: XCB is not detected. Here's how > I include Qt5X11Extras: > > find_package(XCB COMPONENTS XFIXES IMAGE UTIL CURSOR) > if (XCB_FOUND) > find_package(Qt5X11Extras ${QT_MIN_VERSION} REQUIRED) > find_package(KF5Screen ${PLASMA_MIN_VERSION} REQUIRED) > endif() > > Technically this is to separate backends (i.e., the Windows backend, > when it comes up, should not require the XCB bits), but right now I > guess I have to make build fail if XCB is not found.
I installed the required library (xcb cursor devel) and now it compiles. I would also find it better when you fail the build if XCB CURSOR is not found. Startup speed: still at least 3 times slower than ksnapshot (both build on top of debug mode KF5). > Second, include mouse cursor in rectangular screen grabs is disabled > because in compositing enabled environments it's a live image (i.e., > the cropper is a transparent window and you can see what's going on > underneath; the cursor (if captured) is always going to be where the > OK button was when you clicked it. Adding it is trivial (just call the > capture cursor function once) - and I can do it. Question to you is, > would it make sense? E.g. Greenshot does it like this: If you press Print Screen then 1) The whole screen including the cursor is captured immediately. 2) The image is drawn on top of the actual screen image. So you see a still image of your screen. If you do not look closely you might not notice it. 3) Select the rectangular region as with kscreengenie. Gregor > -- Boudhayan Gupta > > On 27 April 2015 at 04:08, Gregor Mi <codestr...@posteo.org> wrote: >> Hi, >> >> compilation status: >> >> ... >> In file included from >> /home/gregor/dev/src/kscreengenie/src/KScreenGenie.h:57:0, >> from /home/gregor/dev/src/kscreengenie/src/Main.cpp:11: >> /home/gregor/dev/src/kscreengenie/src/X11ImageGrabber.h:23:20: fatal error: >> QX11Info: No such file or directory >> #include <QX11Info> >> ^ >> compilation terminated. >> >> and found that in CMakeLists.txt at least X11Extras is missing. >> >> find_package( >> Qt5 ${QT_MIN_VERSION} CONFIG REQUIRED >> Core >> Quick >> Widgets >> QuickWidgets >> DBus >> PrintSupport >> X11Extras # missing? >> >> If I add this, something else fails (Config). >> >> Ksnapshot compiles fine. >> >> Gregor >> >> >> >> On 26/04/15 19:55, Gregor Mi wrote: >> >> Hi Boudhayan, >> >> I am currently compiling the latest KF5 and come back to you regarding the >> compositing >> problem. >> >> I have some ksnapshot/kscreengenie related questions which you might know >> the answer: >> >> 1) >> I wonder why "include mouse pointer" does not work when a user-defined >> rectangular region >> is chosen. Could - in the worst case - not the entire screen be taken and >> then an image >> crop applied? >> >> 2) >> Is it possible to capture the mouse pointer as separate image? (This would >> be prerequisite >> for this feature: move or delete the mouse pointer _after_ the screenshot >> has been taken) >> >> Bye >> >> Gregor >> >> >> On 21/04/15 00:50, Boudhayan Gupta wrote: >> >> Disabling compositing is not a solution. Could you report if a Qt/KF >> update fixes this (whenever you can)? >> >> I hope I can do it the coming weekend. >> >> >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<