Age | Commit message (Collapse) | Author |
|
Signed-off-by: Eirik Byrkjeflot Anonsen <eirik@eirikba.org>
|
|
Signed-off-by: Eirik Byrkjeflot Anonsen <eirik@eirikba.org>
|
|
Signed-off-by: Eirik Byrkjeflot Anonsen <eirik@eirikba.org>
|
|
Signed-off-by: Eirik Byrkjeflot Anonsen <eirik@eirikba.org>
|
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
Allows us to get rid of a second copy of the code that differed only
in the unicode argument passed on to Format_String.
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
|
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
|
|
Fix "bad format character: u" error for format '8u', e.g.:
xprop -root -f _NET_WM_NAME 8u -set _NET_WM_NAME LG3D
Signed-off-by: James Cloos <cloos@jhcloos.com>
|
|
xprop.c:1011:2: warning: Function call argument is an uninitialized value
memcpy(_formatting_buffer, error, strlen(error)+1);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
xprop.c:1011:36: note: instantiated from:
memcpy(_formatting_buffer, error, strlen(error)+1);
^ ~~~~~
Found-by: clang static analysis
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
|
|
xprop.c:299:25: warning: Passed-by-value struct argument contains uninitialized data (e.g., field: 'thunk_count')
_property_formats = Add_Thunk(_property_formats, t);
^ ~
xprop.c:1394:11: warning: Passed-by-value struct argument contains uninitialized data (e.g., field: 'thunk_count')
thunks = Add_Thunk(thunks, t);
^ ~
xprop.c:1581:15: warning: Passed-by-value struct argument contains uninitialized data (e.g., field: 'thunk_count')
thunks = Add_Thunk(thunks, t);
^ ~
xprop.c:1962:18: warning: Passed-by-value struct argument contains uninitialized data (e.g., field: 'thunk_count')
set_props = Add_Thunk(set_props, t);
^ ~
xprop.c:1952:21: warning: Passed-by-value struct argument contains uninitialized data (e.g., field: 'thunk_count')
remove_props = Add_Thunk(remove_props, t);
^ ~
Found-by: clang static analyzer
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
|
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Julien Cristau <jcristau@debian.org>
|
|
Since stdlib.h versions return void *, remove unneeded casts that
the wrappers needed.
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Julien Cristau <jcristau@debian.org>
|
|
Signed-off-by: Jesse Adkins <jesserayadkins@gmail.com>
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
Introduces 'u' format character, which behaves like 's', but leaves
UTF-8 encoding intact.
Property value is checked for UTF-8 validity according to RFC 3629.
If invalid, an error string is printed, followed by the string formatted
using 's'. ie:
PROP(UTF8_STRING) = <Invalid UTF-8 string: Forbidden value> "\374\233"
Signed-off-by: Yang Zhao <yang@yangman.ca>
Signed-off-by: James Cloos <cloos@jhcloos.com>
|
|
|
|
|
|
|
|
I'm trying to use xprop with the -spy option in a shell script, and
since it doesn't flush stdout, it's bunching up lots of modifications
into a big chunk of writes.
|
|
From bug 2185¹
When manually selecting a window, xprop finds the top-level window containing
the pointer and uses XmuClientWindow to attempt to find a client window having
WM_STATE set.
In a WM using virtual roots (e.g. enlightenment, desks other than first) this
fails beacuse the top-level window is a virtual root, and XmuClientWindow seems
to find the first client having WM_STATE set, which only by coincidence will be
the one the user intended to select (i.e. containing the pointer).
The solution is to descend the window hierarchy at the pointer location to find
a window with WM_STATE set.
1] https://bugs.freedesktop.org/show_bug.cgi?id=2185
Signed-off-by: James Cloos <cloos@jhcloos.com>
|
|
CJK locales need a much longer string as they include
many \xXX entries which expand into /XXXXXXXX entries.
Increased the buffer from 10000 to 500000 bytes.
Make sure buffer pointer doesn't go negative in _put_char.
|
|
|
|
|
|
|
|
|
|
|
|
Handle buggy servers which set actual_format_return == 0, instead of aborting.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|