Closed GoogleCodeExporter closed 9 years ago
oh. to be clear, I'm looking for either (a) a switch to automatically traverse
the
tree up to the nearest top-level window or (b) that to be the default behaviour
of
getwindowfocus. cheers ;)
Original comment by jma...@gmail.com
on 5 Jan 2009 at 10:39
Emacs has this problem, too, or something very similar.
I'll look into it. Thanks :)
Original comment by jls.semi...@gmail.com
on 26 Jan 2009 at 10:06
From gnome-terminal:
% xdotool getwindowfocus
56623111
% echo $WINDOWID
56623153
gnome-terminal, xterm, and others, set the env var WINDOWID before launching
shells
and such.
Seems like the default behavior should be to pull the toplevel window, so I'll
work
on making this the default and, if necessary, provide a switch to use the
current
behavior.
Original comment by jls.semi...@gmail.com
on 26 Jan 2009 at 10:11
Fixed:
% xwininfo -id $(./xdotool getwindowfocus) | grep 'Window id'
xwininfo: Window id: 0x3600007 "zsh"
To get the old behavior, use 'getwindowfocus -f'
% xwininfo -id $(./xdotool getwindowfocus -f) | grep 'Window id'
xwininfo: Window id: 0x3600008 (has no name)
Original comment by jls.semi...@gmail.com
on 26 Jan 2009 at 11:04
Original comment by jls.semi...@gmail.com
on 26 Jan 2009 at 11:17
thanks!
Original comment by jma...@gmail.com
on 26 Jan 2009 at 12:19
Original issue reported on code.google.com by
jma...@gmail.com
on 5 Jan 2009 at 10:38