| Summary: | ksnapshot fails to bring window to front before snapshot with 'window under cursor' selected | ||
|---|---|---|---|
| Product: | TDE | Reporter: | David C. Rankin <trin> |
| Component: | tdegraphics | Assignee: | Timothy Pearson <kb9vqf> |
| Status: | NEW --- | ||
| Severity: | normal | CC: | bugwatch |
| Priority: | P5 | ||
| Version: | R14.0.x [Trinity] | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Compiler Version: | TDE Version String: | ||
| Application Version: | Application Name: | ||
| Bug Depends on: | |||
| Bug Blocks: | 2968 | ||
| Attachments: |
ksnapshot grabbing part of incorrect window - example 1
ksnapshot grabbing part of incorrect window - example 2 |
||
Created attachment 547 [details]
ksnapshot grabbing part of incorrect window - example 2
Also note in example 2, the right side of the window is not captured correctly. However, if the target window is already the top window, the screenshot is captured fine. So the incorrect capture of 1/2 the scrollbar on the right is caused by this bug as well. Could be Yet Another gcc 4.7 anomaly. :) I tested this under my current GIT build, gcc 4.4.4. I fiddled a bit and noticed when the two timeouts are too close to one another then I could replicate the behavior you described. For example, 0.75 seconds for focus and 1 second for ksnapshot. A 0.25 second difference is defeated by the pace at which I moved the mouse pointer to the window I wanted to capture. When I slowly moved the mouse pointer then I replicated the behavior. The two timeouts clashed and the window manager was in the process of raising the desired window, which sent the wrong momentary image to ksnapshot. When I moved the mouse pointer as fast as possible over the desired windows then the window popped forward before the ksnapshot timeout expired. When I adjusted the ksnapshot timeout to more than one full second longer than the focus timeout, which provided me sufficient time to move the pointer and allow for the focus timeout to take effect, then the behavior stopped. For example, 0.75 seconds for focus and 2 seconds for ksnapshot. Would you test this again with an ample difference between the two timeouts? |
Created attachment 546 [details] ksnapshot grabbing part of incorrect window - example 1 When using ksnapshot to take a screenshot of 'window under cursor', ksnapshot does not bring the window to the front before capturing the image resulting in the capture of the contents of any windows are 'on top' of the desired window within the geometry of the desired window. This is incorrect behavior and after 5 years of kde3.4-5 and tde 3.5.12, 13 & R14 -- this is the first time I have seen this behavior. ksnapshot should bring the desired window to the front before capturing the screenshot to prevent capture of extraneous information. tdegraphics was built on gcc47 and the focus model set for the desktop is focus follows mouse. I don't know if either of those make any difference. screenshots will be attached.