#101937 xbase-clients: [xwd] 'xwd -name windowtitle -frame' doesn't capture frame

Package:
x11-apps
Source:
x11-apps
Description:
X applications
Submitter:
"Tilman J . Rothe"
Date:
2023-02-19 00:48:03 UTC
Severity:
normal
#101937#5
Date:
2001-06-22 17:51:10 UTC
From:
To:
Hi,

if I create a screenshot with

xwd -name 'emacs@extaxpi.lan'  -out image -frame

the screenshot doesn't contain the window manager frame. If I specify
the window by clicking on it (without the -name option), I get the
screenshot including the window manager frame as expected:

xwd   -out image -frame


fvwm -version
[FVWM][main]:  Fvwm Version 2.2.4 compiled on Jan 19 2000 at 00:53:30
# no gnome, kde or the like

#101937#10
Date:
2001-06-23 17:54:39 UTC
From:
To:
Hi,
sorry I forgot to mention this in the bug report:

X version:
xf86SumProc  pSum=0x8239098 what=CLOSE
XFree86 Version 3.3.6 / X Window System
(protocol Version 11, revision 0, vendor release 6300)
Release Date: January 8 2000
Operating System: Linux 2.2.14-va.4.4-i586 i686 [ELF]
Configured drivers:
  Mach64: accelerated server for ATI Mach64 graphics adaptors (Patchlevel 1)
(using VT number 7)

window id:
Using the window ID instead of the titel doesn't work, either:
xwd  -id 0x3400002 -out image-full -frame
[same results as with title]


Ciao, Tilman

#101937#31
Date:
2023-02-18 23:04:36 UTC
From:
To:
This is operating as documented - in the xwd man page, it states:

        -frame  This  option  indicates that the window manager frame should be
                included when manually selecting a window.

But using -name is selecting a window automatically, not waiting for the user
to manually click on it.

With the current implementation, you would instead need to do:

"xwininfo -name ... -children | grep Parent"

and use the id returned by that with the -id argument to xwd:

"xwd -id ... -out image"

Making -frame work with the automatic selection arguments (-id & -name)
might be a nice enhancement, but it's not a bug that it doesn't yet.