Add tips on how to more easily get the ids of windows, and how to shorten
2005-09-03 Elijah Newren <newren@gmail.com> * HACKING: Add tips on how to more easily get the ids of windows, and how to shorten xprop output.
This commit is contained in:
parent
809a1c173f
commit
86bbde337c
@ -1,3 +1,8 @@
|
|||||||
|
2005-09-03 Elijah Newren <newren@gmail.com>
|
||||||
|
|
||||||
|
* HACKING: Add tips on how to more easily get the ids of windows,
|
||||||
|
and how to shorten xprop output.
|
||||||
|
|
||||||
2005-09-02 Brent Smith <gnome@nextreality.net>
|
2005-09-02 Brent Smith <gnome@nextreality.net>
|
||||||
|
|
||||||
* src/place.c: (meta_window_place): Moved the call to
|
* src/place.c: (meta_window_place): Moved the call to
|
||||||
|
20
HACKING
20
HACKING
@ -69,16 +69,22 @@ Relevant standards and X properties
|
|||||||
xprop
|
xprop
|
||||||
in a terminal and click on one of the windows on your screen. That gives
|
in a terminal and click on one of the windows on your screen. That gives
|
||||||
you the x properties for that window. Look through them and get a basic
|
you the x properties for that window. Look through them and get a basic
|
||||||
idea of what's there for kicks. Next, try running
|
idea of what's there for kicks. Note that you can get rid of some of the
|
||||||
|
verboseness by grepping out the _NET_WM_ICON stuff, i.e.
|
||||||
|
xprop | grep -v _NET_WM_ICON
|
||||||
|
Next, try running
|
||||||
xprop -root
|
xprop -root
|
||||||
in a terminal. There's all the properties of the root window (which you
|
in a terminal. There's all the properties of the root window (which you
|
||||||
can think of as the "main" window). You can also manually specify
|
can think of as the "main" Xserver window). You can also manually
|
||||||
individual windows that you want the properties of with
|
specify individual windows that you want the properties of with
|
||||||
xprop -id <id>
|
xprop -id <id>
|
||||||
if you know the id of the window in question (you can get this from the
|
if you know the id of the window in question. You can get the id of a
|
||||||
_NET_CLIENT_STACKING property of the root window). Finally, it can also
|
given window by either running xwininfo, e.g.
|
||||||
be useful to add "-spy" (without the quotes) to the xprop command to get
|
xwininfo | grep "Window id" | cut -f 4 -d ' '
|
||||||
it to continually monitor that window and report any changes to you.
|
or by looking at the _NET_CLIENT_STACKING property of the root
|
||||||
|
window. Finally, it can also be useful to add "-spy" (without the
|
||||||
|
quotes) to the xprop command to get it to continually monitor that
|
||||||
|
window and report any changes to you.
|
||||||
|
|
||||||
Debugging information
|
Debugging information
|
||||||
Trying to run a window manager under a typical debugger, such as gdb,
|
Trying to run a window manager under a typical debugger, such as gdb,
|
||||||
|
Loading…
Reference in New Issue
Block a user