Just checking on this bug on Karmic (9.10). The problem is not just related to xclock, but seems to occur on windows for lots of programs, including a terminal window and a zenity dialog window. I've found some even more weird behaviour today just using terminal windows. The attachment root-win-marked.png is a picture of my entire desktop with three terminal windows marked as A, B and C, along with some other open windows. I attempted to capture screen shots of window B using commands entered in window A as shown (and annotated below). The sleep commands give me enough time to alt-tab to give B focus after entering the command in A.
i...@attic4:~$ # try capture using import by clicking on title area of B i...@attic4:~$ sleep 3; import -frame import1.png import: unable to read X window image `': Resource temporarily unavailable @ xwindow.c/XImportImage/4979. i...@attic4:~$ # Now try by using convert and clicking in middle of window i...@attic4:~$ sleep 3; import -frame import1.png i...@attic4:~$ #That worked but import1.png does not include window frame i...@attic4:~$ i...@attic4:~$ # Now try using xwd and click on title area i...@attic4:~$ sleep 3; xwd | convert - xwd-loca-1.png i...@attic4:~$ # Repeat using xwd and click in middle of window i...@attic4:~$ sleep 3; xwd | convert - xwd-loca-2.png i...@attic4:~$ # Now move B so it is over A but not entirely over C i...@attic4:~$ # Use xwd and click on title i...@attic4:~$ sleep 3; xwd | convert - xwd-locb-1.png i...@attic4:~$ # Now move B so it is over both A and C i...@attic4:~$ # Use xwd and click on title i...@attic4:~$ sleep 3; xwd | convert - xwd-locc-1.png Using import and clicking on title bar failed as previously reported. Using import and clicking in interior of window captures interior but no frame, even though -frame option was specified. (import1.png) Using xwd and clicking on title bar captures frame area, but it is corrupted. The title area shows part of the command being executed in Window A and the frame edge is corrupted by text from Window C (xwd-loca-1.png) Using xwd and clicking on the interior of the window is similar to using convert in the same way - no frame at all (xwd-loca-2.png) Next I ran a command in B and then moved it so the title is entirely over A. All of the captured area that shoudl be title is now from A and the only part of the frame that is not corrupted is that part not over either A or C (although it is over another window) (xwd-locb-1.png) Finally, I moved B so it is entirely over both A and C. Add the -screen option to xwd to capture anything that should be over the window being captured. Again, the title bar of B is entirely over A. Give focus to C, then give focus to A and enter command, then alt-tab to give focus to B. Now what should be the title area of B is actually from A and what should be the interior of B is actually from C. (xwd-locc-1.png). This is definitely not working in any reasonable way. ** Attachment added: "5 png images as described in comment" http://launchpadlibrarian.net/45236520/images-2010-04-24.zip -- Cannot do screen capture of xclock window https://bugs.launchpad.net/bugs/464031 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs