···11+commit 985a3a70918038bf2569e0a5ebe3fa14d720e4de
22+Author: Alan Coopersmith <alan.coopersmith@oracle.com>
33+Date: Sun Jul 14 13:51:36 2019 -0700
44+55+ xwininfo 1.1.5
66+77+ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
88+99+commit 1a50edf62c9511a2bee8b7cc3b72e5185f7b593f
1010+Author: Alan Coopersmith <alan.coopersmith@oracle.com>
1111+Date: Sun Jun 9 10:21:39 2019 -0700
1212+1313+ Clear -Wsign-compare warnings from gcc 7.3
1414+1515+ dsimple.c: In function ‘recursive_Window_With_Name’:
1616+ dsimple.c:298:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
1717+ if ((namelen == prop_name_len) &&
1818+ ^~
1919+ dsimple.c:336:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
2020+ if ((namelen == prop_name_len) &&
2121+ ^~
2222+ dsimple.c:371:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
2323+ for (i = 0; i < nchildren; i++) {
2424+ ^
2525+ dsimple.c:380:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
2626+ for (i = 0; i < nchildren; i++) {
2727+ ^
2828+ dsimple.c:390:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
2929+ for (/* keep previous i */; i < nchildren; i++) {
3030+ ^
3131+ dsimple.c: In function ‘Get_Atom’:
3232+ dsimple.c:616:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
3333+ if (a->atom == -1) /* internal error */
3434+ ^~
3535+3636+ xwininfo.c: In function ‘wm_size_hints_reply’:
3737+ xwininfo.c:730:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
3838+ if (length > sizeof(wm_size_hints_t))
3939+ ^
4040+ xwininfo.c: In function ‘Display_Event_Mask’:
4141+ xwininfo.c:1229:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
4242+ for (bit=0, bit_mask=1; bit < sizeof(long)*8; bit++, bit_mask <<= 1)
4343+ ^
4444+ xwininfo.c: In function ‘wm_hints_reply’:
4545+ xwininfo.c:1633:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
4646+ if (length > sizeof(wm_hints_t))
4747+ ^
4848+ xwininfo.c: In function ‘is_valid_utf8’:
4949+ xwininfo.c:1843:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
5050+ for (i = 0; i < len; i++) {
5151+ ^
5252+5353+ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
5454+5555+commit 58213a0cd39dc4ba044f48fab52ed3256ab9a9bd
5656+Author: Stéphane Aulery <lkppo@free.fr>
5757+Date: Wed Jul 3 00:29:17 2013 +0200
5858+5959+ Improve manpage and -h option
6060+6161+ - Rename windows and display args.
6262+ - Mention of short (-d) -display option.
6363+6464+ Signed-off-by: Stéphane Aulery <lkppo@free.fr>
6565+ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
6666+6767+commit d19200c0b0ff638edbb16555e711d2353625bd4a
6868+Author: Alan Coopersmith <alan.coopersmith@oracle.com>
6969+Date: Wed Nov 21 17:21:49 2018 -0800
7070+7171+ Update configure.ac bug URL for gitlab migration
7272+7373+ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
7474+7575+commit 015b29ca761102c95c722928557336e101a4a6e1
7676+Author: Alan Coopersmith <alan.coopersmith@oracle.com>
7777+Date: Fri Nov 16 23:32:24 2018 -0800
7878+7979+ Update README for gitlab migration
8080+8181+ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
8282+8383+commit f8c9f340421883f659b820214ddf8a21d5022a3a
8484+Author: David Hill <dhill@mindcry.org>
8585+Date: Wed Dec 11 04:05:19 2013 +0000
8686+8787+ In Find_Client, if (win == XCB_WINDOW_NONE), roots should be freed.
8888+8989+ https://bugs.freedesktop.org/show_bug.cgi?id=72583
9090+9191+ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
9292+193commit 919665db8ceb8e2c38a1a4ce4686eb224ddf5234
294Author: Alan Coopersmith <alan.coopersmith@oracle.com>
395Date: Fri Mar 9 20:41:31 2018 -0800
···11-xwininfo prints information about windows on an X server.
22-Various information is displayed depending on which options are selected.
33-44-All questions regarding this software should be directed at the
55-Xorg mailing list:
66-77- http://lists.freedesktop.org/mailman/listinfo/xorg
88-99-Please submit bug reports to the Xorg bugzilla:
1010-1111- https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
1212-1313-The master development code repository can be found at:
1414-1515- git://anongit.freedesktop.org/git/xorg/app/xwininfo
1616-1717- http://cgit.freedesktop.org/xorg/app/xwininfo
1818-1919-For patch submission instructions, see:
2020-2121- http://www.x.org/wiki/Development/Documentation/SubmittingPatches
2222-2323-For more information on the git code manager, see:
2424-2525- http://wiki.x.org/wiki/GitPage
2626-
+18
app/xwininfo/README.md
···11+xwininfo prints information about windows on an X server.
22+Various information is displayed depending on which options are selected.
33+44+All questions regarding this software should be directed at the
55+Xorg mailing list:
66+77+ https://lists.x.org/mailman/listinfo/xorg
88+99+The master development code repository can be found at:
1010+1111+ https://gitlab.freedesktop.org/xorg/app/xwininfo
1212+1313+Please submit bug reports and requests to merge patches there.
1414+1515+For patch submission instructions, see:
1616+1717+ https://www.x.org/wiki/Development/Documentation/SubmittingPatches
1818+
···11#! /bin/sh
22# Guess values for system-dependent variables and create Makefiles.
33-# Generated by GNU Autoconf 2.69 for xwininfo 1.1.4.
33+# Generated by GNU Autoconf 2.69 for xwininfo 1.1.5.
44#
55-# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
55+# Report bugs to <https://gitlab.freedesktop.org/xorg/app/xwininfo/issues>.
66#
77#
88# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
···267267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268268 else
269269 $as_echo "$0: Please tell bug-autoconf@gnu.org and
270270-$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
270270+$0: https://gitlab.freedesktop.org/xorg/app/xwininfo/issues
271271$0: about your system, including any error possibly output
272272$0: before this message. Then install a modern shell, or
273273$0: manually run the script under such a shell if you do
···581581# Identity of this package.
582582PACKAGE_NAME='xwininfo'
583583PACKAGE_TARNAME='xwininfo'
584584-PACKAGE_VERSION='1.1.4'
585585-PACKAGE_STRING='xwininfo 1.1.4'
586586-PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
584584+PACKAGE_VERSION='1.1.5'
585585+PACKAGE_STRING='xwininfo 1.1.5'
586586+PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xwininfo/issues'
587587PACKAGE_URL=''
588588589589ac_unique_file="Makefile.am"
···13211321 # Omit some internal or obsolete options to make the list less imposing.
13221322 # This message is too long to be a string in the A/UX 3.1 sh.
13231323 cat <<_ACEOF
13241324-\`configure' configures xwininfo 1.1.4 to adapt to many kinds of systems.
13241324+\`configure' configures xwininfo 1.1.5 to adapt to many kinds of systems.
1325132513261326Usage: $0 [OPTION]... [VAR=VALUE]...
13271327···1391139113921392if test -n "$ac_init_help"; then
13931393 case $ac_init_help in
13941394- short | recursive ) echo "Configuration of xwininfo 1.1.4:";;
13941394+ short | recursive ) echo "Configuration of xwininfo 1.1.5:";;
13951395 esac
13961396 cat <<\_ACEOF
13971397···14481448Use these variables to override the choices made by `configure' or to help
14491449it to find libraries and programs with nonstandard names/locations.
1450145014511451-Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
14511451+Report bugs to <https://gitlab.freedesktop.org/xorg/app/xwininfo/issues>.
14521452_ACEOF
14531453ac_status=$?
14541454fi
···15111511test -n "$ac_init_help" && exit $ac_status
15121512if $ac_init_version; then
15131513 cat <<\_ACEOF
15141514-xwininfo configure 1.1.4
15141514+xwininfo configure 1.1.5
15151515generated by GNU Autoconf 2.69
1516151615171517Copyright (C) 2012 Free Software Foundation, Inc.
···16711671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
16721672$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
16731673( $as_echo "## ---------------------------------------------------------------------- ##
16741674-## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
16741674+## Report this to https://gitlab.freedesktop.org/xorg/app/xwininfo/issues ##
16751675## ---------------------------------------------------------------------- ##"
16761676 ) | sed "s/^/$as_me: WARNING: /" >&2
16771677 ;;
···19261926This file contains any messages produced by compilers while
19271927running configure, to aid debugging if configure makes a mistake.
1928192819291929-It was created by xwininfo $as_me 1.1.4, which was
19291929+It was created by xwininfo $as_me 1.1.5, which was
19301930generated by GNU Autoconf 2.69. Invocation command line was
1931193119321932 $ $0 $@
···4066406640674067# Define the identity of the package.
40684068 PACKAGE='xwininfo'
40694069- VERSION='1.1.4'
40694069+ VERSION='1.1.5'
407040704071407140724072cat >>confdefs.h <<_ACEOF
···43724372 }
43734373fi
4374437443754375-ac_prog=ld
43764376-if test "$GCC" = yes; then
43774377- # Check if gcc -print-prog-name=ld gives a path.
43754375+if test -n "$LD"; then
43764376+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld" >&5
43774377+$as_echo_n "checking for ld... " >&6; }
43784378+elif test "$GCC" = yes; then
43784379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
43794380$as_echo_n "checking for ld used by $CC... " >&6; }
43804380- case $host in
43814381- *-*-mingw*)
43824382- # gcc leaves a trailing carriage return which upsets mingw
43834383- ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
43844384- *)
43854385- ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
43864386- esac
43874387- case $ac_prog in
43884388- # Accept absolute paths.
43894389- [\\/]* | ?:[\\/]*)
43904390- re_direlt='/[^/][^/]*/\.\./'
43914391- # Canonicalize the pathname of ld
43924392- ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
43934393- while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
43944394- ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
43954395- done
43964396- test -z "$LD" && LD="$ac_prog"
43974397- ;;
43984398- "")
43994399- # If it fails, then pretend we aren't using GCC.
44004400- ac_prog=ld
44014401- ;;
44024402- *)
44034403- # If it is relative, then search for the first ld in PATH.
44044404- with_gnu_ld=unknown
44054405- ;;
44064406- esac
44074381elif test "$with_gnu_ld" = yes; then
44084382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
44094383$as_echo_n "checking for GNU ld... " >&6; }
···44114385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
44124386$as_echo_n "checking for non-GNU ld... " >&6; }
44134387fi
44144414-if ${acl_cv_path_LD+:} false; then :
43884388+if test -n "$LD"; then
43894389+ # Let the user override the test with a path.
43904390+ :
43914391+else
43924392+ if ${acl_cv_path_LD+:} false; then :
44154393 $as_echo_n "(cached) " >&6
44164394else
44174417- if test -z "$LD"; then
44184418- acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
44194419- for ac_dir in $PATH; do
44204420- IFS="$acl_save_ifs"
44214421- test -z "$ac_dir" && ac_dir=.
44224422- if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
44234423- acl_cv_path_LD="$ac_dir/$ac_prog"
44244424- # Check to see if the program is GNU ld. I'd rather use --version,
44254425- # but apparently some variants of GNU ld only accept -v.
44264426- # Break only if it was the GNU/non-GNU ld that we prefer.
44274427- case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
44284428- *GNU* | *'with BFD'*)
44294429- test "$with_gnu_ld" != no && break
44304430- ;;
44314431- *)
44324432- test "$with_gnu_ld" != yes && break
44334433- ;;
43954395+43964396+ acl_cv_path_LD= # Final result of this test
43974397+ ac_prog=ld # Program to search in $PATH
43984398+ if test "$GCC" = yes; then
43994399+ # Check if gcc -print-prog-name=ld gives a path.
44004400+ case $host in
44014401+ *-*-mingw*)
44024402+ # gcc leaves a trailing carriage return which upsets mingw
44034403+ acl_output=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
44044404+ *)
44054405+ acl_output=`($CC -print-prog-name=ld) 2>&5` ;;
44064406+ esac
44074407+ case $acl_output in
44084408+ # Accept absolute paths.
44094409+ [\\/]* | ?:[\\/]*)
44104410+ re_direlt='/[^/][^/]*/\.\./'
44114411+ # Canonicalize the pathname of ld
44124412+ acl_output=`echo "$acl_output" | sed 's%\\\\%/%g'`
44134413+ while echo "$acl_output" | grep "$re_direlt" > /dev/null 2>&1; do
44144414+ acl_output=`echo $acl_output | sed "s%$re_direlt%/%"`
44154415+ done
44164416+ # Got the pathname. No search in PATH is needed.
44174417+ acl_cv_path_LD="$acl_output"
44184418+ ac_prog=
44194419+ ;;
44204420+ "")
44214421+ # If it fails, then pretend we aren't using GCC.
44224422+ ;;
44234423+ *)
44244424+ # If it is relative, then search for the first ld in PATH.
44254425+ with_gnu_ld=unknown
44264426+ ;;
44344427 esac
44354428 fi
44364436- done
44374437- IFS="$acl_save_ifs"
44294429+ if test -n "$ac_prog"; then
44304430+ # Search for $ac_prog in $PATH.
44314431+ acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
44324432+ for ac_dir in $PATH; do
44334433+ IFS="$acl_save_ifs"
44344434+ test -z "$ac_dir" && ac_dir=.
44354435+ if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
44364436+ acl_cv_path_LD="$ac_dir/$ac_prog"
44374437+ # Check to see if the program is GNU ld. I'd rather use --version,
44384438+ # but apparently some variants of GNU ld only accept -v.
44394439+ # Break only if it was the GNU/non-GNU ld that we prefer.
44404440+ case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
44414441+ *GNU* | *'with BFD'*)
44424442+ test "$with_gnu_ld" != no && break
44434443+ ;;
44444444+ *)
44454445+ test "$with_gnu_ld" != yes && break
44464446+ ;;
44474447+ esac
44484448+ fi
44494449+ done
44504450+ IFS="$acl_save_ifs"
44514451+ fi
44524452+ case $host in
44534453+ *-*-aix*)
44544454+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44554455+/* end confdefs.h. */
44564456+#if defined __powerpc64__ || defined _ARCH_PPC64
44574457+ int ok;
44584458+ #else
44594459+ error fail
44604460+ #endif
44614461+44624462+_ACEOF
44634463+if ac_fn_c_try_compile "$LINENO"; then :
44644464+ # The compiler produces 64-bit code. Add option '-b64' so that the
44654465+ # linker groks 64-bit object files.
44664466+ case "$acl_cv_path_LD " in
44674467+ *" -b64 "*) ;;
44684468+ *) acl_cv_path_LD="$acl_cv_path_LD -b64" ;;
44694469+ esac
44704470+44714471+fi
44724472+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44734473+ ;;
44744474+ sparc64-*-netbsd*)
44754475+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44764476+/* end confdefs.h. */
44774477+#if defined __sparcv9 || defined __arch64__
44784478+ int ok;
44794479+ #else
44804480+ error fail
44814481+ #endif
44824482+44834483+_ACEOF
44844484+if ac_fn_c_try_compile "$LINENO"; then :
44854485+44384486else
44394439- acl_cv_path_LD="$LD" # Let the user override the test with a path.
44874487+ # The compiler produces 32-bit code. Add option '-m elf32_sparc'
44884488+ # so that the linker groks 32-bit object files.
44894489+ case "$acl_cv_path_LD " in
44904490+ *" -m elf32_sparc "*) ;;
44914491+ *) acl_cv_path_LD="$acl_cv_path_LD -m elf32_sparc" ;;
44924492+ esac
44934493+44404494fi
44954495+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44964496+ ;;
44974497+ esac
44984498+44414499fi
4442450044434443-LD="$acl_cv_path_LD"
45014501+ LD="$acl_cv_path_LD"
45024502+fi
44444503if test -n "$LD"; then
44454504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
44464505$as_echo "$LD" >&6; }
44474506else
44484507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44494508$as_echo "no" >&6; }
45094509+ as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
44504510fi
44514451-test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
44524511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
44534512$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
44544513if ${acl_cv_prog_gnu_ld+:} false; then :
···45054564450645654507456645084508- acl_libdirstem=lib
45094509- acl_libdirstem2=
45674567+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking 32-bit host C ABI" >&5
45684568+$as_echo_n "checking 32-bit host C ABI... " >&6; }
45694569+if ${gl_cv_host_cpu_c_abi_32bit+:} false; then :
45704570+ $as_echo_n "(cached) " >&6
45714571+else
45724572+ if test -n "$gl_cv_host_cpu_c_abi"; then
45734573+ case "$gl_cv_host_cpu_c_abi" in
45744574+ i386 | x86_64-x32 | arm | armhf | arm64-ilp32 | hppa | ia64-ilp32 | mips | mipsn32 | powerpc | riscv*-ilp32* | s390 | sparc)
45754575+ gl_cv_host_cpu_c_abi_32bit=yes ;;
45764576+ *)
45774577+ gl_cv_host_cpu_c_abi_32bit=no ;;
45784578+ esac
45794579+ else
45804580+ case "$host_cpu" in
45814581+45824582+ i[4567]86 )
45834583+ gl_cv_host_cpu_c_abi_32bit=yes
45844584+ ;;
45854585+45864586+ x86_64 )
45874587+ # On x86_64 systems, the C compiler may be generating code in one of
45884588+ # these ABIs:
45894589+ # - 64-bit instruction set, 64-bit pointers, 64-bit 'long': x86_64.
45904590+ # - 64-bit instruction set, 64-bit pointers, 32-bit 'long': x86_64
45914591+ # with native Windows (mingw, MSVC).
45924592+ # - 64-bit instruction set, 32-bit pointers, 32-bit 'long': x86_64-x32.
45934593+ # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': i386.
45944594+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45954595+/* end confdefs.h. */
45964596+#if (defined __x86_64__ || defined __amd64__ \
45974597+ || defined _M_X64 || defined _M_AMD64) \
45984598+ && !(defined __ILP32__ || defined _ILP32)
45994599+ int ok;
46004600+ #else
46014601+ error fail
46024602+ #endif
46034603+46044604+_ACEOF
46054605+if ac_fn_c_try_compile "$LINENO"; then :
46064606+ gl_cv_host_cpu_c_abi_32bit=no
46074607+else
46084608+ gl_cv_host_cpu_c_abi_32bit=yes
46094609+fi
46104610+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46114611+ ;;
46124612+46134613+ arm* | aarch64 )
46144614+ # Assume arm with EABI.
46154615+ # On arm64 systems, the C compiler may be generating code in one of
46164616+ # these ABIs:
46174617+ # - aarch64 instruction set, 64-bit pointers, 64-bit 'long': arm64.
46184618+ # - aarch64 instruction set, 32-bit pointers, 32-bit 'long': arm64-ilp32.
46194619+ # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': arm or armhf.
46204620+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46214621+/* end confdefs.h. */
46224622+#if defined __aarch64__ && !(defined __ILP32__ || defined _ILP32)
46234623+ int ok;
46244624+ #else
46254625+ error fail
46264626+ #endif
46274627+46284628+_ACEOF
46294629+if ac_fn_c_try_compile "$LINENO"; then :
46304630+ gl_cv_host_cpu_c_abi_32bit=no
46314631+else
46324632+ gl_cv_host_cpu_c_abi_32bit=yes
46334633+fi
46344634+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46354635+ ;;
46364636+46374637+ hppa1.0 | hppa1.1 | hppa2.0* | hppa64 )
46384638+ # On hppa, the C compiler may be generating 32-bit code or 64-bit
46394639+ # code. In the latter case, it defines _LP64 and __LP64__.
46404640+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46414641+/* end confdefs.h. */
46424642+#ifdef __LP64__
46434643+ int ok;
46444644+ #else
46454645+ error fail
46464646+ #endif
46474647+46484648+_ACEOF
46494649+if ac_fn_c_try_compile "$LINENO"; then :
46504650+ gl_cv_host_cpu_c_abi_32bit=no
46514651+else
46524652+ gl_cv_host_cpu_c_abi_32bit=yes
46534653+fi
46544654+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46554655+ ;;
46564656+46574657+ ia64* )
46584658+ # On ia64 on HP-UX, the C compiler may be generating 64-bit code or
46594659+ # 32-bit code. In the latter case, it defines _ILP32.
46604660+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46614661+/* end confdefs.h. */
46624662+#ifdef _ILP32
46634663+ int ok;
46644664+ #else
46654665+ error fail
46664666+ #endif
46674667+46684668+_ACEOF
46694669+if ac_fn_c_try_compile "$LINENO"; then :
46704670+ gl_cv_host_cpu_c_abi_32bit=yes
46714671+else
46724672+ gl_cv_host_cpu_c_abi_32bit=no
46734673+fi
46744674+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46754675+ ;;
46764676+46774677+ mips* )
46784678+ # We should also check for (_MIPS_SZPTR == 64), but gcc keeps this
46794679+ # at 32.
46804680+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46814681+/* end confdefs.h. */
46824682+#if defined _MIPS_SZLONG && (_MIPS_SZLONG == 64)
46834683+ int ok;
46844684+ #else
46854685+ error fail
46864686+ #endif
46874687+46884688+_ACEOF
46894689+if ac_fn_c_try_compile "$LINENO"; then :
46904690+ gl_cv_host_cpu_c_abi_32bit=no
46914691+else
46924692+ gl_cv_host_cpu_c_abi_32bit=yes
46934693+fi
46944694+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46954695+ ;;
46964696+46974697+ powerpc* )
46984698+ # Different ABIs are in use on AIX vs. Mac OS X vs. Linux,*BSD.
46994699+ # No need to distinguish them here; the caller may distinguish
47004700+ # them based on the OS.
47014701+ # On powerpc64 systems, the C compiler may still be generating
47024702+ # 32-bit code. And on powerpc-ibm-aix systems, the C compiler may
47034703+ # be generating 64-bit code.
47044704+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47054705+/* end confdefs.h. */
47064706+#if defined __powerpc64__ || defined _ARCH_PPC64
47074707+ int ok;
47084708+ #else
47094709+ error fail
47104710+ #endif
47114711+47124712+_ACEOF
47134713+if ac_fn_c_try_compile "$LINENO"; then :
47144714+ gl_cv_host_cpu_c_abi_32bit=no
47154715+else
47164716+ gl_cv_host_cpu_c_abi_32bit=yes
47174717+fi
47184718+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47194719+ ;;
47204720+47214721+ rs6000 )
47224722+ gl_cv_host_cpu_c_abi_32bit=yes
47234723+ ;;
47244724+47254725+ riscv32 | riscv64 )
47264726+ # There are 6 ABIs: ilp32, ilp32f, ilp32d, lp64, lp64f, lp64d.
47274727+ # Size of 'long' and 'void *':
47284728+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47294729+/* end confdefs.h. */
47304730+#if defined __LP64__
47314731+ int ok;
47324732+ #else
47334733+ error fail
47344734+ #endif
47354735+47364736+_ACEOF
47374737+if ac_fn_c_try_compile "$LINENO"; then :
47384738+ gl_cv_host_cpu_c_abi_32bit=no
47394739+else
47404740+ gl_cv_host_cpu_c_abi_32bit=yes
47414741+fi
47424742+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47434743+ ;;
47444744+47454745+ s390* )
47464746+ # On s390x, the C compiler may be generating 64-bit (= s390x) code
47474747+ # or 31-bit (= s390) code.
47484748+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47494749+/* end confdefs.h. */
47504750+#if defined __LP64__ || defined __s390x__
47514751+ int ok;
47524752+ #else
47534753+ error fail
47544754+ #endif
47554755+47564756+_ACEOF
47574757+if ac_fn_c_try_compile "$LINENO"; then :
47584758+ gl_cv_host_cpu_c_abi_32bit=no
47594759+else
47604760+ gl_cv_host_cpu_c_abi_32bit=yes
47614761+fi
47624762+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47634763+ ;;
47644764+47654765+ sparc | sparc64 )
47664766+ # UltraSPARCs running Linux have `uname -m` = "sparc64", but the
47674767+ # C compiler still generates 32-bit code.
47684768+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47694769+/* end confdefs.h. */
47704770+#if defined __sparcv9 || defined __arch64__
47714771+ int ok;
47724772+ #else
47734773+ error fail
47744774+ #endif
47754775+47764776+_ACEOF
47774777+if ac_fn_c_try_compile "$LINENO"; then :
47784778+ gl_cv_host_cpu_c_abi_32bit=no
47794779+else
47804780+ gl_cv_host_cpu_c_abi_32bit=yes
47814781+fi
47824782+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47834783+ ;;
47844784+47854785+ *)
47864786+ gl_cv_host_cpu_c_abi_32bit=no
47874787+ ;;
47884788+ esac
47894789+ fi
47904790+47914791+fi
47924792+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_host_cpu_c_abi_32bit" >&5
47934793+$as_echo "$gl_cv_host_cpu_c_abi_32bit" >&6; }
47944794+47954795+ HOST_CPU_C_ABI_32BIT="$gl_cv_host_cpu_c_abi_32bit"
47964796+47974797+47984798+47994799+48004800+45104801 case "$host_os" in
45114802 solaris*)
45124512- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
48034803+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
45134804$as_echo_n "checking for 64-bit host... " >&6; }
45144805if ${gl_cv_solaris_64bit+:} false; then :
45154806 $as_echo_n "(cached) " >&6
45164807else
45174808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45184809/* end confdefs.h. */
45194519-45204810#ifdef _LP64
45214521-sixtyfour bits
45224522-#endif
48114811+ int ok;
48124812+ #else
48134813+ error fail
48144814+ #endif
4523481545244816_ACEOF
45254525-if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45264526- $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
48174817+if ac_fn_c_try_compile "$LINENO"; then :
45274818 gl_cv_solaris_64bit=yes
45284819else
45294820 gl_cv_solaris_64bit=no
45304821fi
45314531-rm -f conftest*
45324532-48224822+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4533482345344824fi
45354825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
45364536-$as_echo "$gl_cv_solaris_64bit" >&6; }
45374537- if test $gl_cv_solaris_64bit = yes; then
45384538- acl_libdirstem=lib/64
45394539- case "$host_cpu" in
45404540- sparc*) acl_libdirstem2=lib/sparcv9 ;;
45414541- i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
45424542- esac
45434543- fi
45444544- ;;
45454545- *)
45464546- searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
45474547- if test -n "$searchpath"; then
45484548- acl_save_IFS="${IFS= }"; IFS=":"
45494549- for searchdir in $searchpath; do
45504550- if test -d "$searchdir"; then
45514551- case "$searchdir" in
45524552- */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
45534553- */../ | */.. )
45544554- # Better ignore directories of this form. They are misleading.
45554555- ;;
45564556- *) searchdir=`cd "$searchdir" && pwd`
48264826+$as_echo "$gl_cv_solaris_64bit" >&6; };;
48274827+ esac
48284828+48294829+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the common suffixes of directories in the library search path" >&5
48304830+$as_echo_n "checking for the common suffixes of directories in the library search path... " >&6; }
48314831+if ${acl_cv_libdirstems+:} false; then :
48324832+ $as_echo_n "(cached) " >&6
48334833+else
48344834+ acl_libdirstem=lib
48354835+ acl_libdirstem2=
48364836+ case "$host_os" in
48374837+ solaris*)
48384838+ if test $gl_cv_solaris_64bit = yes; then
48394839+ acl_libdirstem=lib/64
48404840+ case "$host_cpu" in
48414841+ sparc*) acl_libdirstem2=lib/sparcv9 ;;
48424842+ i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
48434843+ esac
48444844+ fi
48454845+ ;;
48464846+ *)
48474847+ if test "$HOST_CPU_C_ABI_32BIT" != yes; then
48484848+ searchpath=`(if test -f /usr/bin/gcc \
48494849+ && LC_ALL=C /usr/bin/gcc -print-search-dirs >/dev/null 2>/dev/null; then \
48504850+ LC_ALL=C /usr/bin/gcc -print-search-dirs; \
48514851+ else \
48524852+ LC_ALL=C $CC -print-search-dirs; \
48534853+ fi) 2>/dev/null \
48544854+ | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
48554855+ if test -n "$searchpath"; then
48564856+ acl_save_IFS="${IFS= }"; IFS=":"
48574857+ for searchdir in $searchpath; do
48584858+ if test -d "$searchdir"; then
45574859 case "$searchdir" in
45584558- */lib64 ) acl_libdirstem=lib64 ;;
45594559- esac ;;
45604560- esac
45614561- fi
45624562- done
45634563- IFS="$acl_save_IFS"
45644564- fi
45654565- ;;
45664566- esac
45674567- test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
48604860+ */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
48614861+ */../ | */.. )
48624862+ # Better ignore directories of this form. They are misleading.
48634863+ ;;
48644864+ *) searchdir=`cd "$searchdir" && pwd`
48654865+ case "$searchdir" in
48664866+ */lib64 ) acl_libdirstem=lib64 ;;
48674867+ esac ;;
48684868+ esac
48694869+ fi
48704870+ done
48714871+ IFS="$acl_save_IFS"
48724872+ fi
48734873+ fi
48744874+ ;;
48754875+ esac
48764876+ test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
48774877+ acl_cv_libdirstems="$acl_libdirstem,$acl_libdirstem2"
4568487848794879+fi
48804880+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_libdirstems" >&5
48814881+$as_echo "$acl_cv_libdirstems" >&6; }
48824882+ # Decompose acl_cv_libdirstems into acl_libdirstem and acl_libdirstem2.
48834883+ acl_libdirstem=`echo "$acl_cv_libdirstems" | sed -e 's/,.*//'`
48844884+ acl_libdirstem2=`echo "$acl_cv_libdirstems" | sed -e '/,/s/.*,//'`
456948854570488645714887···46144930 additional_includedir="$withval/include"
46154931 additional_libdir="$withval/$acl_libdirstem"
46164932 if test "$acl_libdirstem2" != "$acl_libdirstem" \
46174617- && ! test -d "$withval/$acl_libdirstem"; then
49334933+ && test ! -d "$withval/$acl_libdirstem"; then
46184934 additional_libdir="$withval/$acl_libdirstem2"
46194935 fi
46204936 fi
···50365352503753535038535450395039-50405355 am_save_CPPFLAGS="$CPPFLAGS"
5041535650425357 for element in $INCICONV; do
···52375552#endif
52385553 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
52395554 provided. */
52405240- if (/* Try standardized names. */
52415241- iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
52425242- /* Try IRIX, OSF/1 names. */
52435243- && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
52445244- /* Try AIX names. */
52455245- && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
52465246- /* Try HP-UX names. */
52475247- && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
52485248- result |= 16;
55555555+ {
55565556+ /* Try standardized names. */
55575557+ iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
55585558+ /* Try IRIX, OSF/1 names. */
55595559+ iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
55605560+ /* Try AIX names. */
55615561+ iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
55625562+ /* Try HP-UX names. */
55635563+ iconv_t cd4 = iconv_open ("utf8", "eucJP");
55645564+ if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
55655565+ && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
55665566+ result |= 16;
55675567+ if (cd1 != (iconv_t)(-1))
55685568+ iconv_close (cd1);
55695569+ if (cd2 != (iconv_t)(-1))
55705570+ iconv_close (cd2);
55715571+ if (cd3 != (iconv_t)(-1))
55725572+ iconv_close (cd3);
55735573+ if (cd4 != (iconv_t)(-1))
55745574+ iconv_close (cd4);
55755575+ }
52495576 return result;
5250557752515578 ;
···53355662 $am_cv_proto_iconv" >&5
53365663$as_echo "
53375664 $am_cv_proto_iconv" >&6; }
56655665+ else
56665666+ am_cv_proto_iconv_arg1=""
56675667+ fi
5338566853395669cat >>confdefs.h <<_ACEOF
53405670#define ICONV_CONST $am_cv_proto_iconv_arg1
53415671_ACEOF
534256725343567353445344- fi
534556745346567553475676# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
···1249612825# report actual input values of CONFIG_FILES etc. instead of their
1249712826# values after options handling.
1249812827ac_log="
1249912499-This file was extended by xwininfo $as_me 1.1.4, which was
1282812828+This file was extended by xwininfo $as_me 1.1.5, which was
1250012829generated by GNU Autoconf 2.69. Invocation command line was
12501128301250212831 CONFIG_FILES = $CONFIG_FILES
···1255612885Configuration commands:
1255712886$config_commands
12558128871255912559-Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
1288812888+Report bugs to <https://gitlab.freedesktop.org/xorg/app/xwininfo/issues>."
12560128891256112890_ACEOF
1256212891cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1256312892ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1256412893ac_cs_version="\\
1256512565-xwininfo config.status 1.1.4
1289412894+xwininfo config.status 1.1.5
1256612895configured by $0, generated by GNU Autoconf 2.69,
1256712896 with options \\"\$ac_cs_config\\"
1256812897
···279279{
280280 xcb_window_t *children;
281281 unsigned int nchildren;
282282- int i;
282282+ unsigned int i;
283283 xcb_window_t w = 0;
284284 xcb_generic_error_t *err;
285285 xcb_query_tree_reply_t *tree;
···295295 int prop_name_len = xcb_get_property_value_length (prop);
296296297297 /* can't use strcmp, since prop.name is not null terminated */
298298- if ((namelen == prop_name_len) &&
298298+ if ((namelen == (size_t) prop_name_len) &&
299299 memcmp (prop_name, name, namelen) == 0) {
300300 w = window;
301301 }
···317317 if (xcb_icccm_get_wm_name_reply (dpy, cookies->get_wm_name,
318318 &nameprop, &err)) {
319319 /* can't use strcmp, since nameprop.name is not null terminated */
320320- if ((namelen == nameprop.name_len) &&
320320+ if ((namelen == (size_t) nameprop.name_len) &&
321321 memcmp (nameprop.name, name, namelen) == 0) {
322322 w = window;
323323 }
···333333 int prop_name_len = xcb_get_property_value_length (prop);
334334335335 /* can't use strcmp, since prop.name is not null terminated */
336336- if ((namelen == prop_name_len) &&
336336+ if ((namelen == (size_t) prop_name_len) &&
337337 memcmp (prop_name, name, namelen) == 0) {
338338 w = window;
339339 }
···610610 a->atom = reply->atom;
611611 free (reply);
612612 } else {
613613- a->atom = -1;
613613+ a->atom = (xcb_atom_t) -1;
614614 }
615615 }
616616- if (a->atom == -1) /* internal error */
616616+ if (a->atom == (xcb_atom_t) -1) /* internal error */
617617 return XCB_ATOM_NONE;
618618619619 return a->atom;
+8-8
app/xwininfo/man/xwininfo.man
···2828xwininfo \- window information utility for X
2929.SH SYNOPSIS
3030.B "xwininfo"
3131-[\-help] [\-id \fIid\fP] [\-root] [\-name \fIname\fP] [\-int]
3131+[\-help] [\-id \fIwdid\fP] [\-root] [\-name \fIwdname\fP] [\-int]
3232[\-children] [\-tree] [\-stats] [\-bits] [\-events] [\-size] [\-wm] [\-shape]
3333[\-frame] [\-all]
3434[\-english] [\-metric]
3535-[\-display \fIdisplay\fP] [\-version]
3535+[\-display \fIhost:dpy\fP] [\-version]
3636.SH DESCRIPTION
3737.PP
3838.I Xwininfo
···5555Print out the `Usage:' command syntax summary.
5656.PP
5757.TP 8
5858-.B "\-id \fIid\fP"
5959-This option allows the user to specify a target window \fIid\fP on the
5858+.B "\-id \fIwdid\fP"
5959+This option allows the user to specify a target window \fIwdid\fP on the
6060command line rather than using the mouse to select the target window.
6161This is very useful in debugging X applications where the target
6262window is not mapped to the screen or where the use of the mouse might
6363be impossible or interfere with the application.
6464.PP
6565.TP 8
6666-.B "\-name \fIname\fP"
6767-This option allows the user to specify that the window named \fIname\fP
6666+.B "\-name \fIwdname\fP"
6767+This option allows the user to specify that the window named \fIwdname\fP
6868is the target window on the command line rather than using the mouse to
6969select the target window.
7070.PP
···152152This option is a quick way to ask for all information possible.
153153.PP
154154.TP 8
155155-.B \-display \fIdisplay\fP
155155+.B "\-d, \-display" \fIhost:dpy\fP
156156This option allows you to specify the server to connect to; see \fIX(__miscmansuffix__)\fP.
157157-PP
157157+.PP
158158.TP 8
159159.B \-version
160160This option indicates that
+26-25
app/xwininfo/xwininfo.c
···285285 fprintf (stderr,
286286 "usage: %s [-options ...]\n\n"
287287 "where options include:\n"
288288- " -help print this message\n"
289289- " -version print version message\n"
290290- " -display host:dpy X server to contact\n"
291291- " -root use the root window\n"
292292- " -id windowid use the window with the specified id\n"
293293- " -name windowname use the window with the specified name\n"
294294- " -int print window id in decimal\n"
295295- " -children print parent and child identifiers\n"
296296- " -tree print children identifiers recursively\n"
297297- " -stats print window geometry [DEFAULT]\n"
298298- " -bits print window pixel information\n"
299299- " -events print events selected for on window\n"
300300- " -size print size hints\n"
301301- " -wm print window manager hints\n"
302302- " -shape print shape extents\n"
303303- " -frame don't ignore window manager frames\n"
304304- " -english print sizes in english units\n"
305305- " -metric print sizes in metric units\n"
306306- " -all -tree, -stats, -bits, -events, -wm, -size, -shape\n"
288288+ " -help print this message\n"
289289+ " -version print version message\n"
290290+ " -d[isplay] <host:dpy> X server to contact\n"
291291+ " -root use the root window\n"
292292+ " -id <wdid> use the window with the specified id\n"
293293+ " -name <wdname> use the window with the specified name\n"
294294+ " -int print window id in decimal\n"
295295+ " -children print parent and child identifiers\n"
296296+ " -tree print children identifiers recursively\n"
297297+ " -stats print window geometry [DEFAULT]\n"
298298+ " -bits print window pixel information\n"
299299+ " -events print events selected for on window\n"
300300+ " -size print size hints\n"
301301+ " -wm print window manager hints\n"
302302+ " -shape print shape extents\n"
303303+ " -frame don't ignore window manager frames\n"
304304+ " -english print sizes in english units\n"
305305+ " -metric print sizes in metric units\n"
306306+ " -all -tree, -stats, -bits, -events, -wm, -size, -shape\n"
307307 "\n",
308308 program_name);
309309 exit (1);
···716716 wm_size_hints_t *hints_return, xcb_generic_error_t **wshr_err)
717717{
718718 xcb_get_property_reply_t *prop = xcb_get_property_reply (wshr_dpy, cookie, wshr_err);
719719- int length;
719719+ size_t length;
720720721721 if (!prop || (prop->type != XCB_ATOM_WM_SIZE_HINTS) ||
722722 (prop->format != 32)) {
···726726727727 memset (hints_return, 0, sizeof(wm_size_hints_t));
728728729729- length = xcb_get_property_value_length(prop);
729729+ length = (size_t) xcb_get_property_value_length(prop);
730730 if (length > sizeof(wm_size_hints_t))
731731 length = sizeof(wm_size_hints_t);
732732 memcpy (hints_return, xcb_get_property_value (prop), length);
···12241224static void
12251225Display_Event_Mask (long mask)
12261226{
12271227- long bit, bit_mask;
12271227+ unsigned long bit, bit_mask;
1228122812291229 for (bit=0, bit_mask=1; bit < sizeof(long)*8; bit++, bit_mask <<= 1)
12301230 if (mask & bit_mask)
···16201620 wm_hints_t *hints_return, xcb_generic_error_t **whr_err)
16211621{
16221622 xcb_get_property_reply_t *prop = xcb_get_property_reply (whr_dpy, cookie, whr_err);
16231623- int length;
16231623+ size_t length;
1624162416251625 if (!prop || (prop->type != XCB_ATOM_WM_HINTS) || (prop->format != 32)) {
16261626 free (prop);
···1629162916301630 memset (hints_return, 0, sizeof(wm_hints_t));
1631163116321632- length = xcb_get_property_value_length(prop);
16321632+ length = (size_t) xcb_get_property_value_length(prop);
16331633 if (length > sizeof(wm_hints_t))
16341634 length = sizeof(wm_hints_t);
16351635 memcpy (hints_return, xcb_get_property_value (prop), length);
···18361836is_valid_utf8 (const char *string, size_t len)
18371837{
18381838 unsigned long codepoint;
18391839- int rem, i;
18391839+ int rem;
18401840+ size_t i;
18401841 unsigned char c;
1841184218421843 rem = 0;