! 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 !
Capturing active window doesn't work properly
Status:
RESOLVED: FIXED
Product:
Xfce4-screenshooter
Component:
General

Comments

Description Masato Hashimoto 2009-06-04 17:22:01 CEST
Created attachment 2382 
Actual result captured as active window.

Overview:
When capturing screenshot of active window, Screenshooter doesn't capture an active window.

Steps to reproduce:
1) Launch xfce4-screenshooter as stand-alone.
2) Choose Active window option and click OK button.

Actual result:
Screenshooter seems to capture a region of screenshooter's dialog. Please see attachments.

Additional Info:
To capture an active window from panel plugin works properly.

Build and platform:
Build 2009-06-04 on Arch Linux
Comment 1 Masato Hashimoto 2009-06-04 17:24:14 CEST
Created attachment 2383 
Full screen before capturing

This is a screenshot of full screen before capturing.
Comment 2 Jérôme Guelfucci editbugs 2009-06-04 18:57:04 CEST
Thank you for opening the bug report. I think I know what causes this.

Does setting a 1 second delay fix the issue?
Comment 3 Masato Hashimoto 2009-06-05 13:37:39 CEST
(In reply to comment #2)
> Thank you for opening the bug report. I think I know what causes this.
> 
> Does setting a 1 second delay fix the issue?

I tried to set delay from 1 to 10, but nothing work properly.

And I realized that the screenshooter's dialog seems to continue being displayed till start capturing (= delay setting) after clicking OK button.

For example:
1) Set delay as 10
2) Click OK button

 ** Screenshooter dialog is still displayed approx. 10 sec. **

3) After 10 sec, The dialog is disappeared and start capturing

You know In Screenshooter 1.5.1 (current stable), dialog is disappeared immediately after clicking "Take the screenshot" button. It works properly in my system.

BTW, my test machine is too old; Pen3 733MHz :D
Comment 4 Jérôme Guelfucci editbugs 2009-06-05 13:53:29 CEST
Ok, I think I found the problem. Could you test if r7461 works properly?

Thanks a lot!
Comment 5 Masato Hashimoto 2009-06-05 16:34:25 CEST
Created attachment 2384 
blank screenshot

Thank you for your quick work, almost fixed but...

If focus is in the delay's box (caret is appeared and blinking in the box), captured screenshots become blank (I may not catch the condition precisely, though). Please see attachment.

Otherwise, active window is captured properly in any delays.
Comment 6 Jérôme Guelfucci editbugs 2009-06-05 17:00:50 CEST
Ok, thank you for testing this. I think I know what causes and will fix this tomorrow.
Comment 7 Jérôme Guelfucci editbugs 2009-06-05 20:08:44 CEST
r7462 should normally fix your latest issue.
Comment 8 Masato Hashimoto 2009-06-06 06:58:58 CEST
Unfortunately, The latest issue still occurs (same behavior).
The occurrence condition I reported seems to be not precisely.
If delay value is selected (just after (re)displaying screenshooter dialog, the value is selected), capturing works properly regardless which control is focused on. Otherwise the issue occurs.
Comment 9 Jérôme Guelfucci editbugs 2009-06-06 07:51:33 CEST
Ok, I tried something else. Could you please test r7463?
Comment 10 Masato Hashimoto 2009-06-06 09:30:59 CEST
Created attachment 2387 
Screenshooter's dialog is also captured

The last issue is partly fixed on my system.
Active window is always captured but if set delay 0, screenshooter's dialog laps over an active (target) window and the window isn't simple, then screenshooter's dialog is also captured or a part of active window is not captured properly.
This occurs both of the delay value is selected or not.
Comment 11 Jérôme Guelfucci editbugs 2009-06-06 09:41:11 CEST
Ok, hopefully r7465 should improve this.
Comment 12 Masato Hashimoto 2009-06-06 10:45:55 CEST
Great!
I think completely fixed.
Thank you for your hard work :)
Comment 13 Jérôme Guelfucci editbugs 2009-06-06 12:01:25 CEST
Thank YOU for reporting this and testing the fixes! I'm glad you have found this bug, releasing this would have been lame.

Bug #5424

Reported by:
Masato Hashimoto
Reported on: 2009-06-04
Last modified on: 2009-07-14

People

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

Version

Version:
unspecified

Attachments

Actual result captured as active window. (24.47 KB, image/png)
2009-06-04 17:22 CEST , Masato Hashimoto
no flags
Full screen before capturing (315.21 KB, image/png)
2009-06-04 17:24 CEST , Masato Hashimoto
no flags
blank screenshot (84 bytes, image/png)
2009-06-05 16:34 CEST , Masato Hashimoto
no flags
Screenshooter's dialog is also captured (169.11 KB, image/png)
2009-06-06 09:30 CEST , Masato Hashimoto
no flags

Additional information