[Bug 869652] Re: Ksnapshot: "Include mouse pointer" doesn't.

Bug Watch Updater 869652 at bugs.launchpad.net
Wed Sep 19 14:46:34 UTC 2012


Launchpad has imported 52 comments from the remote bug at
https://bugs.kde.org/show_bug.cgi?id=28656.

If you reply to an imported comment from within Launchpad, your comment
will be sent to the remote bug automatically. Read more about
Launchpad's inter-bugtracker facilities at
https://help.launchpad.net/InterBugTracking.

------------------------------------------------------------------------
On 2001-07-10T18:07:06+00:00 Yohng wrote:

(*** This bug was imported into bugs.kde.org ***)

Package:           ksnapshot
Version:           unknown (using KDE 2.1.1 )
Severity:          wishlist
Installed from:    SuSE
Compiler:          gcc version 2.95.2 19991024 (release)
OS:                Linux 2.2.16 i686
OS/Compiler notes: 

In ksnapshot program I would like to see checkbox "Grab with mouse
cursor". That means that program should get cursor shape and lay it over
bitmap as most of recent videocards do cursor in hardware and will not
allow to grab it directly from screen.

Feature is very useful for taking screenshots for bug reports ;)

(Submitted via bugs.kde.org)
(Called from KBugReport dialog)

Reply at: https://bugs.launchpad.net/kdegraphics/+bug/869652/comments/0

------------------------------------------------------------------------
On 2002-08-01T21:57:52+00:00 Akfy-rich-nw2w wrote:

Not possible I'm afraid.

Rich.

Reply at: https://bugs.launchpad.net/kdegraphics/+bug/869652/comments/1

------------------------------------------------------------------------
On 2004-02-20T01:28:09+00:00 Sébastien Laoût wrote:

And now ?
Is it possible ?

KDE now knowjow to change cursor theme.
So,get theme couldbe possible.
If not,juste get the cursor position and include a generic cursor : it can be usefull,even if wrong cursor shape.

Reply at: https://bugs.launchpad.net/kdegraphics/+bug/869652/comments/2

------------------------------------------------------------------------
On 2004-03-02T20:45:10+00:00 Jttac wrote:

Wish to include or exclude mouse cursor when taking screen shot.
For example, include "paint bucket" cursor in graphic object for OpenOffice.org DRAW documentation.

Alternative would be some "clip art" feature somewhere in KDE so that I could copy an image of some particular mouse cursor shape (such as the paint bucket shape) and overlay the clip art onto my ksnapshot image.
Found all sorts of mouse cursor shapes, but no paint bucket. Oi. :-(

Reply at: https://bugs.launchpad.net/kdegraphics/+bug/869652/comments/3

------------------------------------------------------------------------
On 2004-11-04T13:02:29+00:00 richlv wrote:

this would be an extremly useful feature for bugreports. unfortunately
it is not possible to vote anymore :/

and, for example, on windows foto canvas (acd software product) allows
to grab with mouse pointer, so there must be some way to do this
technically

Reply at: https://bugs.launchpad.net/kdegraphics/+bug/869652/comments/4

------------------------------------------------------------------------
On 2005-04-15T01:42:14+00:00 Awendt-t wrote:

Created attachment 10637
Allows ksnapshot to take screenshots that include the mouse pointer

I created a patch that adds this feature to ksnapshot. It relies on the XFIXES
extension. It adds a new checkbox that allows you to turn the feature on and
off, and a couple DCOP functions to get and set the state of the checkbox.

It also adds DCOP functions to get and set the state of the "include
decorations" checkbox, since I didn't see existing ones. And it fixes a couple
of variables that could have been used before they were initialized.

Reply at: https://bugs.launchpad.net/kdegraphics/+bug/869652/comments/5

------------------------------------------------------------------------
On 2006-03-05T02:54:25+00:00 Janet wrote:

This patch never made it into ksnapshot, didn't it? In ksnaphot of KDE
3.5.1 there still is no checkbox option to include the mouse pointer.
Maybe this bug report and Bug 100926 should go together.

Reply at: https://bugs.launchpad.net/kdegraphics/+bug/869652/comments/6

------------------------------------------------------------------------
On 2007-01-20T23:47:02+00:00 Richard Moore wrote:

*** Bug 100926 has been marked as a duplicate of this bug. ***

Reply at: https://bugs.launchpad.net/kdegraphics/+bug/869652/comments/7

------------------------------------------------------------------------
On 2007-03-10T21:22:00+00:00 Psychonaut wrote:

Still no checkbox option to include the mouse pointer in KDE 3.5.5.
Does this bug need to be reopened?

Reply at: https://bugs.launchpad.net/kdegraphics/+bug/869652/comments/8

------------------------------------------------------------------------
On 2007-03-11T01:02:54+00:00 Richard Moore wrote:

I don't understand how this got closed. It wasn't through the main
bugzilla, reopenning. Aaron, any thoughts on how we can integrate this
into the UI without screwing it up?


Reply at: https://bugs.launchpad.net/kdegraphics/+bug/869652/comments/9

------------------------------------------------------------------------
On 2007-03-11T02:29:10+00:00 aseigo wrote:

perhaps take the "include window decorations" checkbox and do sth like:

Include: [  ] Window borders
         [  ] Mouse cursor

it shouldn't mess things up too much, i suppose. i don't understand why
the patch provided disables the mouse cursor in region mode, however.

also, i wonder if the de-premultiplying is needed in qt4 (this would
have to go into trunk, too late for 3.x, obviously). that would make the
code a lot nicer =)

adding the ability to turn these things on/off using d-bus is a nice
touch, though. =)

Reply at: https://bugs.launchpad.net/kdegraphics/+bug/869652/comments/10

------------------------------------------------------------------------
On 2007-03-11T04:16:00+00:00 Awendt-t wrote:

Region mode stops and waits for you to draw a rectangle with the mouse,
so at the moment that KSnapshot grabs the screen contents, the mouse
cursor would always be positioned at the very corner of the rectangle
you just drew. KSnapshot also changes the cursor to a crosshair while
you're doing this. That's why the patch disables the mouse cursor
grabbing when in region mode.

I don't know how you'd make them compatible... stop and wait for a
subsequent mouse click inside the rectangle you just drew?

Reply at: https://bugs.launchpad.net/kdegraphics/+bug/869652/comments/11

------------------------------------------------------------------------
On 2007-03-11T04:43:36+00:00 aseigo wrote:

how about capturing the mouse cursor at the moment the screen capture is
made and blit the cursor image onto the screen capture? then the user
can select the desired region.

Reply at: https://bugs.launchpad.net/kdegraphics/+bug/869652/comments/12

------------------------------------------------------------------------
On 2007-03-11T07:42:28+00:00 Awendt-t wrote:

I suppose that'd be a good way to do it. The "snapshot delay" is
currently disabled in region mode also, though, so there's no chance to
move the mouse to the correct spot before the screenshot is acquired.

Reply at: https://bugs.launchpad.net/kdegraphics/+bug/869652/comments/13

------------------------------------------------------------------------
On 2007-05-04T23:38:06+00:00 Janet wrote:

*** This bug has been confirmed by popular vote. ***

Reply at: https://bugs.launchpad.net/kdegraphics/+bug/869652/comments/14

------------------------------------------------------------------------
On 2008-08-07T20:18:56+00:00 Richih-kde wrote:

Any updates on this?

I would bump the version to 0.8.1, but that is not an option I can
choose, at the moment.

Reply at: https://bugs.launchpad.net/kdegraphics/+bug/869652/comments/15

------------------------------------------------------------------------
On 2008-10-01T18:27:52+00:00 Psychonaut wrote:

The screenshot plugin for GIMP 2.6, which was released today, now
includes the option to capture the mouse pointer.  According to the
release notes at <http://gimp.org/release-notes/gimp-2.6.html>, it uses
XFixes.  This is the same extension used by awendt at putergeek.com's
patch.  Any chance of getting this patch applied to the main development
branch?

Reply at: https://bugs.launchpad.net/kdegraphics/+bug/869652/comments/16

------------------------------------------------------------------------
On 2008-10-09T17:30:25+00:00 Kde-2011-08 wrote:

With KDE 4 is this possible now?

Reply at: https://bugs.launchpad.net/kdegraphics/+bug/869652/comments/17

------------------------------------------------------------------------
On 2008-10-09T18:18:27+00:00 Richard Moore wrote:

Yes, this is now possible thanks to improvements to the X server
(specifcally the XFixes extension). It will get implemented, however I
haven't had time to look into it yet.


Reply at: https://bugs.launchpad.net/kdegraphics/+bug/869652/comments/18

------------------------------------------------------------------------
On 2009-02-14T11:54:05+00:00 Pino Toscano wrote:

*** Bug 184287 has been marked as a duplicate of this bug. ***

Reply at: https://bugs.launchpad.net/kdegraphics/+bug/869652/comments/19

------------------------------------------------------------------------
On 2010-01-10T16:00:28+00:00 JohnFlux wrote:

Can we get these patches committed?

Reply at: https://bugs.launchpad.net/kdegraphics/+bug/869652/comments/20

------------------------------------------------------------------------
On 2010-01-11T23:11:41+00:00 JohnFlux wrote:

Created attachment 39791
Updated patch to add the cursor

This patch updates the previous one to port it to Qt4, cmake, etc.  Also
adds support for window section mode.  It also fixes a bug with
ksnapshot when selecting the last option in ksnapshot.

Reply at: https://bugs.launchpad.net/kdegraphics/+bug/869652/comments/21

------------------------------------------------------------------------
On 2010-01-11T23:23:26+00:00 Pino Toscano wrote:

Created attachment 39792
Another implementation

Sorry for the delay; this is patch it's been sitting locally for a
couple of months, and forgot to send it to Richmoore earlier (done that
a couple of days ago).

Different implementation, not based on the previous patches here.

Reply at: https://bugs.launchpad.net/kdegraphics/+bug/869652/comments/22

------------------------------------------------------------------------
On 2010-01-11T23:47:44+00:00 JohnFlux wrote:

Cool.  My patch has the advantages:

1) Disables/enables the checkbox depending on whether the mode supports it or not
2) Supports the Window Section mode
3) Loads the cursor straight into a ARGB32_Premultiplied

Reply at: https://bugs.launchpad.net/kdegraphics/+bug/869652/comments/23

------------------------------------------------------------------------
On 2010-01-11T23:51:50+00:00 JohnFlux wrote:

4) Saves/Loads the value

Reply at: https://bugs.launchpad.net/kdegraphics/+bug/869652/comments/24

------------------------------------------------------------------------
On 2010-01-12T00:34:05+00:00 JohnFlux wrote:

Created attachment 39797
Updated for 64bit

This updates the code to work (untested) on 64bit, based on pinotree's
code.

Reply at: https://bugs.launchpad.net/kdegraphics/+bug/869652/comments/25

------------------------------------------------------------------------
On 2010-01-12T00:43:45+00:00 Pino Toscano wrote:

Created attachment 39799
Fixed implementation of mine

This works on both 32bit and 64 bit (tested), saves the option value and
what not.

Reply at: https://bugs.launchpad.net/kdegraphics/+bug/869652/comments/26

------------------------------------------------------------------------
On 2010-01-12T01:04:01+00:00 JohnFlux wrote:

I committed the fix I mentioned before when selecting the Current
Screen.

Reply at: https://bugs.launchpad.net/kdegraphics/+bug/869652/comments/27

------------------------------------------------------------------------
On 2010-01-12T01:36:16+00:00 JohnFlux wrote:

The two patches are becoming more and more similar now.

I think the only changes now are:

1) I enabled/disable the gui option when you change modes
2) I support the window section mode

Reply at: https://bugs.launchpad.net/kdegraphics/+bug/869652/comments/28

------------------------------------------------------------------------
On 2010-01-12T03:50:54+00:00 JohnFlux wrote:

For multiple cursor support we need to:

1) Use XIQueryDevice(XIAllMasterDevices)   and find all the devices that are XIMasterPointer
2) Remember the current XGetClientPointer(dpy)
2) For each one found, do XSetClientPointer(dpy, pointer, None)
3) Now when we do XFixesGetCursorImage(dpy) we will get the image of the current cursor
4) XSetClientPointer the cursor back to the original one

Reply at: https://bugs.launchpad.net/kdegraphics/+bug/869652/comments/29

------------------------------------------------------------------------
On 2010-06-12T20:08:55+00:00 Christoph-maxiom wrote:

*** Bug 241472 has been marked as a duplicate of this bug. ***

Reply at: https://bugs.launchpad.net/kdegraphics/+bug/869652/comments/30

------------------------------------------------------------------------
On 2010-06-12T21:21:59+00:00 ThorbjørnTux wrote:

Created attachment 47953
to get mouse cursor

Reply at: https://bugs.launchpad.net/kdegraphics/+bug/869652/comments/31

------------------------------------------------------------------------
On 2010-06-12T21:35:25+00:00 ThorbjørnTux wrote:

#31 is a patch

Just to state what I wrote in Bug 241472

The code is heavily inspired by
http://msnkambule.wordpress.com/2010/04/09/capturing-a-screenshot-showing-mouse-cursor-in-kde/ 
Thanks to Mayibongwe Nkambule.

/Thorbjørn

Reply at: https://bugs.launchpad.net/kdegraphics/+bug/869652/comments/32

------------------------------------------------------------------------
On 2010-06-21T20:00:58+00:00 ThorbjørnTux wrote:

Could somebody please test - and probably merge my patch into trunk?

Reply at: https://bugs.launchpad.net/kdegraphics/+bug/869652/comments/33

------------------------------------------------------------------------
On 2010-06-21T20:24:04+00:00 ThorbjørnTux wrote:

Sorry, I am stupid enough not to read the whole thread.
Did not notice that serveral patches was made. Maybe somebody could include just one patch.

PS: My patch does not support multiply cursors.

Reply at: https://bugs.launchpad.net/kdegraphics/+bug/869652/comments/34

------------------------------------------------------------------------
On 2010-06-21T21:00:16+00:00 Hans-maulwurf wrote:

I have some weird rendering glitches with your patch. I applied it to
ksnapshot 4.4.4. Screenshot: http://chaox.net/~jens/test1.png

Reply at: https://bugs.launchpad.net/kdegraphics/+bug/869652/comments/35

------------------------------------------------------------------------
On 2010-06-21T21:54:34+00:00 aseigo wrote:

i've merged John's patch with some modifications (in part to make it
apply cleanly against trunk, in part to alter the strings and some of
the logic) and also added code to remove the "Current Screen" option
when there is only one screen on the system. i will commit once 4.6 is
open since we are currently in string freeze and this change contains a
new string.

i will credit both John and tmartsum in the commit message. cheers!

@Jens: when you say "your patch", do you mean tmartsum's or John's?

Reply at: https://bugs.launchpad.net/kdegraphics/+bug/869652/comments/36

------------------------------------------------------------------------
On 2010-06-22T07:31:44+00:00 ThorbjørnTux wrote:

#36
Thanks a lot for patching trunk. I will look into the code.

#35 
It is probably against my patch, but I haven't seen anything similar. Does it happen all the time? (Both from ksnapshot and PrtSc), Nevertheless you can test against trunk now, but I doubt there are that many ways to grab the cursor - and John patch probably works in a similar way.

I use:
XFixesCursorImage *xfcursorImage = XFixesGetCursorImage( QX11Info::display());
QImage mouseCursor( (uchar*)xfcursorImage->pixels,xfcursorImage->width, xfcursorImage->height, QImage::Format_ARGB32_Premultiplied );

Could it be that this only happens if you press PrtSc or does it happen
from knsapshot itself? I had some problems *not* getting a waiting
cursor when ksnapshot was loading (on PrtSc) - and I wonder if this
could be a timing issue. (Meaning happening when PrtSc was pressed and
when mouse-cursor was changing back to normal cursor pointer. Meaning
that the *xfcursorImage is getting invalid.)

Reply at: https://bugs.launchpad.net/kdegraphics/+bug/869652/comments/37

------------------------------------------------------------------------
On 2010-06-22T19:10:52+00:00 ThorbjørnTux wrote:

Ok - misunderstood. Can you inform when the code is in trunk - then I
like to test it.

Reply at: https://bugs.launchpad.net/kdegraphics/+bug/869652/comments/38

------------------------------------------------------------------------
On 2010-06-29T20:39:37+00:00 Anselmo-melo wrote:

*** Bug 237941 has been marked as a duplicate of this bug. ***

Reply at: https://bugs.launchpad.net/kdegraphics/+bug/869652/comments/39

------------------------------------------------------------------------
On 2010-09-30T02:34:48+00:00 Christoph-maxiom wrote:

The code is in trunk, please test.

Reply at: https://bugs.launchpad.net/kdegraphics/+bug/869652/comments/40

------------------------------------------------------------------------
On 2010-10-14T22:19:26+00:00 ThorbjørnTux wrote:

It DID work at some point, but currently I can *not* get it to work right.
(On start no mouse-cursor (or did I see it one time) on delayed snapshots no mouse cursor ...)

Reply at: https://bugs.launchpad.net/kdegraphics/+bug/869652/comments/41

------------------------------------------------------------------------
On 2010-12-11T00:54:14+00:00 Janjabber wrote:

It seems to work fine here, with 4.6 beta 2, under Archlinux.
Video chipset Intel 855GM with intel driver v2.13.0, in case that matters.

It works on the first snapshot and the ones after that, with and without
desktop effects.

Reply at: https://bugs.launchpad.net/kdegraphics/+bug/869652/comments/42

------------------------------------------------------------------------
On 2010-12-19T18:57:58+00:00 Janet wrote:

I've just tested with 4.6 beta 2 and Kubuntu, does work very well. BTW:
I like the new layout of ksnapshot a lot!

Reply at: https://bugs.launchpad.net/kdegraphics/+bug/869652/comments/43

------------------------------------------------------------------------
On 2010-12-25T06:56:41+00:00 slashdevdsp wrote:

kubuntu 10.10 with kde 4.6 RC 1, enabling the Include mouse pointer,
does not work, I have:

Capture mode: window under cursor
snapshot delay: 2 seconds

And the window I am capturing is:
dolphin->places->network->add network folder wizard->select secure shell (ssh) and click next, press 'take a snap shot' and mouse over any of the fields or the text 'save & connect' button in the network folder wizard and the resulting image does not have the mouse pointer.

Reply at: https://bugs.launchpad.net/kdegraphics/+bug/869652/comments/44

------------------------------------------------------------------------
On 2010-12-26T15:06:56+00:00 Janet wrote:

I can confirm that. It did work with Beta2 but doesn't work anymore with
RC1. No matter which settings, first start or not, delay or not, region,
window, fullscreen.

Reply at: https://bugs.launchpad.net/kdegraphics/+bug/869652/comments/45

------------------------------------------------------------------------
On 2010-12-26T15:13:52+00:00 BajK wrote:

It seems to work when using “Window under mouse pointer” but no longer
when doing a fullscreen shot.

Reply at: https://bugs.launchpad.net/kdegraphics/+bug/869652/comments/46

------------------------------------------------------------------------
On 2011-03-10T22:40:28+00:00 BajK wrote:

It seems to work with fullscreen shot but NOT when using a Screenshot
delay.

Reply at: https://bugs.launchpad.net/kdegraphics/+bug/869652/comments/47

------------------------------------------------------------------------
On 2011-03-13T14:02:36+00:00 Markus-elfring wrote:

The mouse pointer is not included in my screen shots by the tool
"KSnapshot 0.8.2" (KDE 4.6.0) that is running on my openSUSE 11.4 system
if I select the modes "full screen" or "area in a window".

Reply at: https://bugs.launchpad.net/kdegraphics/+bug/869652/comments/48

------------------------------------------------------------------------
On 2011-06-23T13:58:55+00:00 Victor-varvariuc wrote:

The same here. Sometimes mouse pointer is included in the screenshot.
Sometimes not. Cannot figure out the circumstances when it works or
doesn't.

Reply at: https://bugs.launchpad.net/kdegraphics/+bug/869652/comments/49

------------------------------------------------------------------------
On 2011-09-28T06:18:43+00:00 Nicolas Réau wrote:

With Ksnapshot 0.8.2 and KDE 4.7.1 the behavior of the "include mouse
cursor" is still chaotic. It works sometimes, and sometimes not. Today,
I can get the cursor when taking the screenshot on a Firefox window, but
i don't get the cursor if I'm over a Digikam window :)

Reply at: https://bugs.launchpad.net/kdegraphics/+bug/869652/comments/50

------------------------------------------------------------------------
On 2012-09-19T12:09:05+00:00 szotsaki wrote:

This bug is still present in KDE 4.9.1.
When you choose „Full screen” and check the mouse cursor check box, KSnapshot doesn't draw the cursor to the resulting image.

Reply at: https://bugs.launchpad.net/kdegraphics/+bug/869652/comments/55

-- 
You received this bug notification because you are a member of Kubuntu
Bugs, which is subscribed to ksnapshot in Ubuntu.
https://bugs.launchpad.net/bugs/869652

Title:
  Ksnapshot: "Include mouse pointer" doesn't.

To manage notifications about this bug go to:
https://bugs.launchpad.net/kdegraphics/+bug/869652/+subscriptions




More information about the kubuntu-bugs mailing list