summaryrefslogtreecommitdiff
path: root/xwininfo.c
AgeCommit message (Collapse)AuthorFilesLines
2010-06-30Make iconv() usage optionalHEADmasterAlan Coopersmith1-6/+108
Allows building without iconv, though character set conversion will not be supported in that case. Handles UTF8_STRING validation and output for UTF-8 locales without iconv (using is_valid_utf8() function copied from X.Org's app/xprop/xprop.c) Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-06-29Add some EWMH hints to the -wm outputAlan Coopersmith1-5/+194
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-06-29Handle non-latin-1 window namesAlan Coopersmith1-24/+141
Uses _NET_WM_NAME to get UTF-8 encoding, iconv to convert to current locale Warns that COMPOUND_TEXT WM_NAMEs aren't supported if _NET_WM_NAME isn't set Adds local atom caching code to dsimple.c and uses it in all three *.c Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-06-29Make xcb-icccm dependency be optional and off-by-defaultAlan Coopersmith1-7/+227
Changes to the xcb-icccm API/ABI are under discussion, so for now default to using local property handling code modeled after the current API, with a --with-xcb-icccm to enable use of the API for testing/development. Once the API/ABI is stable & released, this set of changes should be removed and the xcb-icccm API just used directly. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-06-29Convert from Xlib to xcbAlan Coopersmith1-387/+614
Testing was done with a simple GNOME 2.28 session with a number of applications open (gnome-terminal, VirtualBox, Firefox). Primary test case was xwininfo -root -all, which listed 114 children of the root window. Output was identical to Xlib version (after applying the fix to libxcb_icccm for always null-terminating wm_class properties). Over a local connection on the same machine: Xlib: 0.00u 0.01s 0:00.05 20.0% xcb: 0.00u 0.00s 0:00.02 0.0% (i.e. barely measurable difference - I had more variation between repeated runs of the command) Introducing latency by running over ssh -X from California to Beijing and back: Xlib: 0.03u 0.02s 8:19.12 0.0% xcb: 0.00u 0.00s 0:45.26 0.0% Memory size when exit() is called: Xlib: Address Kbytes RSS Anon Locked Mode Mapped File 08043000 20 20 20 - rw--- [ stack ] 08400000 144 144 144 - rw--- [ heap ] total Kb 8972 8640 316 - xcb: Address Kbytes RSS Anon Locked Mode Mapped File 08045000 12 12 12 - rwx-- [ stack ] 0806C000 100 100 100 - rwx-- [ heap ] total Kb 7980 7692 288 - Bytes sent & received (counted by proxying via xscope): Xlib: Client --> Server: 21380 bytes Client <-- Server: 54124 bytes xcb: Client --> Server: 21114 bytes Client <-- Server: 53160 bytes (The Xlib code didn't save any replies, so re-requested a couple of things when running with -all - I fixed that while porting to xcb, but the same could be done with Xlib easily too.) Not yet handled: WM_NAME properties that need to be converted from another character encoding. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-06-13Delay generating unknown code string until we know we need itAlan Coopersmith1-5/+7
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-06-13Make spacing more consistentAlan Coopersmith1-624/+625
Different functions had 2, 4, 6, or 8 spaces per indent level, standardized on 4 spaces. Also more consistenly put spaces before parens. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-06-06Remove #ifdef NO_I18N code branchesAlan Coopersmith1-23/+2
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-06-06Remove RCS/CVS id tagsAlan Coopersmith1-3/+0
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-06-06mark window_id_format as a const stringAlan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-06-06Collapse some series of multiline printfs into single strings/callsAlan Coopersmith1-46/+27
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-01-15Update Sun license notices to current X.Org standard formAlan Coopersmith1-1/+22
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-03-28Report visual id along visual class for -stat switchYann Droneaud1-0/+1
Signed-off-by: James Cloos <cloos@jhcloos.com>
2009-01-15Ansification and compile warning fixes.Paulo Cesar Pereira de Andrade1-11/+11
This also uses XORG_CHANGELOG and XORG_CWARNFLAGS, corrects make distcheck and most gcc 4.3 and sparse warnings.
2008-06-22Fix window selection by pointer.Kim Woelders1-12/+1
This should fix things in WM’s using virtual roots as well as in tabbing WM’s. Signed-off-by: James Cloos <cloos@jhcloos.com>
2007-08-07Add static & const qualifiers to xwininfo.cAlan Coopersmith1-60/+60
2007-08-07Replace sprintf's with snprintf & strlcatAlan Coopersmith1-54/+81
2006-03-10Clear two tiny memory leaks. (Coverity ids #900 & 901)Alan Coopersmith1-0/+5
2004-04-23Merging XORG-CURRENT into trunkEgbert Eich1-1/+1
2004-03-14Importing vendor version xf86-4_4_99_1 on Sun Mar 14 00:26:39 PST 2004Egbert Eich1-1/+1
2004-03-03Importing vendor version xf86-4_4_0 on Wed Mar 3 04:09:24 PST 2004Egbert Eich1-1/+1
2004-02-26readding XFree86's cvs IDsEgbert Eich1-1/+1
2004-02-26Importing vendor version xf86-4_3_99_903 on Wed Feb 26 01:21:00 PST 2004Egbert Eich1-1/+1
2003-11-25XFree86 4.3.99.16 Bring the tree up to date for the Cygwin folksKaleb Keithley1-83/+105
2003-11-14XFree86 4.3.0.1Kaleb Keithley1-8/+48
2003-11-14R6.6 is the Xorg base-lineKaleb Keithley1-0/+1049