#783964 gnome-screenshot: Spurious triggers of activity menu while validating screenshot region

Package:
gnome-screenshot
Source:
gnome-screenshot
Description:
screenshot application for GNOME
Submitter:
Ludovic Pouzenc
Date:
2015-05-08 20:15:04 UTC
Severity:
normal
#783964#5
Date:
2015-05-01 17:24:04 UTC
From:
To:
Dear Maintainer,

On my fresh defaut install of Debian 8 with dual monitor setup on ATI
card, I have pseudo random problem while trying to screenshot a region
of my main screen.

I trigger gnome-screenshot by pressing Ctrl+Alt+Printscreen, draw a
region from upper-left corner to bottom-right. Sometimes the region is
the right one and every goes ok, sometime the region start at position
that is not the cursor one (may be a x==0 on current screen ?) then
Activity menu is trggered then the screenshot is taken but not contains
what I want to screenshot.

There is also stange region drawing when going bottom without any x
variation. Seems tru in the reverse : moving on x axis without variying
on y.

2 videos for illustrating the whole fuck :)

http://www.pouzenc.fr/misc/tmp/gnome-screenshot-triggers-activity-menu.webm
http://www.pouzenc.fr/misc/tmp/gnome-screenshot-triggers-strange-rects.webm

I don't know how to report it properly upstream and if gnome-screenshot
is the root source of the problem.

Cheers,
Ludovic

#783964#10
Date:
2015-05-01 18:50:30 UTC
From:
To:
Hi again,

I think finally gnome-screenshot is not affected while I added huge
debug in the code... and it clearly does not run at all.
sources.debian.net allows me to see that gnome-screenshot code have been
duplicated in mate-utils.

Please correct my mistake. (gnome-screenshot => mate-utils)

Regards,
Ludovic

#783964#15
Date:
2015-05-01 19:52:50 UTC
From:
To:
Hi again and again,

I went wrong, it seems the offending code is now in JavaScript in
gnome-shell (may in js/ui/screenshot.js).
It's purely unreadable and uncommented. Worst, I have no clue to dump
out values in code like :

I could try to keep calm and trace this if you have any pointers for me
about overring things in gnome-shell :)

Ludovic

#783964#20
Date:
2015-05-08 20:11:39 UTC
From:
To:
Hi,

Additionnal info : I have disabled the functionnality that open
"Activity" overlay without any click. (I don't know the right english
wording about this functionnality). The bug with screenshot occurs even
in this config.

I was thinking about an uninitialised [0;0] pointer coords in some way
that triggers the hot spot... but no.

Regards,
Ludovic