! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Delay not being applied - for screenshot of active window
Status:
RESOLVED: FIXED
Product:
Xfce4-screenshooter
Component:
General

Comments

Description David Collins 2008-11-14 01:58:30 CET
xfce4-screenshooter-plugin-1.3.9.2

This occurs with both xfce4-screenshooter and the panel plugin.

Delay is set to 4 seconds.

The active window at the time that the panel button/OK putton is pressed appears in GIMP or in the SaveAs dialog (depending on the option chosen) - not the window that is active after the 4-second delay.  If this initially active window is hidden or partly hidden during the 4-second delay, then the image is corrupted or partly corrupted.
Comment 1 Jérôme Guelfucci editbugs 2008-11-14 16:14:49 CET
What do you mean by corrupted or partially corrupted ? Could you attach such a screenshot ? For me, even if I drag another window on top of the previous active window, the screenshot is taken correctly.

Regarding this issue, my idea was to grab the window which is active when the user presses the button. This enables the user to open menus, to act in any way on this window, and to have his changes grabbed.
Comment 2 David Collins 2008-11-14 19:58:11 CET
Created attachment 1976 
Corrupted screenshot

This is generated by 'calculator' being fully visible and active at the time that the snapshot button is pressed, and then half-covered by another window before the delay period is finished.
Comment 3 David Collins 2008-11-14 20:10:22 CET
Jerome,
The delay is required for the snapshot of the active window.  There are a number of situations where moving the mouse and clicking on the snapshot button changes the appearance of the active window.  The delay in the program is to give you time to get the active window appearance correct before the snapshot is taken.  I will send you an example to illustrate.
Comment 4 David Collins 2008-11-14 20:18:19 CET
Created attachment 1977 
Screenshot of Firefox File menu

This shows the Firefox File menu with 'Print' selected.  It is not possible to produce this screenshot without a delay mechanism.
Comment 5 Jérôme Guelfucci editbugs 2008-11-15 12:49:52 CET
Ok, I see what you mean. I'll work on fixing this, but not in 1.4.0.
Comment 6 Jérôme Guelfucci editbugs 2008-11-29 14:43:21 CET
Should be fixed in trunk.

I still grab the window that is active before the delay, but the screenshot is not corrupted anymore because I grab it on the root window now.

Grabbing the window that is active after the delay is more complicated because it gives bad results when the active widget is a menu (for example).

Bug #4611

Reported by:
David Collins
Reported on: 2008-11-14
Last modified on: 2009-07-14

People

Assignee:
Jérôme Guelfucci
CC List:
0 users

Version

Version:
unspecified

Attachments

Corrupted screenshot (4.94 KB, image/png)
2008-11-14 19:58 CET , David Collins
no flags
Screenshot of Firefox File menu (16.42 KB, image/png)
2008-11-14 20:18 CET , David Collins
no flags

Additional information